aboutsummaryrefslogtreecommitdiff
path: root/src/ethosu_driver.c
diff options
context:
space:
mode:
authorPer Åstrand <per.astrand@arm.com>2020-09-28 08:41:45 +0200
committerPer Åstrand <per.astrand@arm.com>2020-09-28 12:44:35 +0200
commitc6c1db160f8dbb817420d6bda906bc57a0defa2a (patch)
tree3d15903ab607cbfb6d75995a842977dfd17261f1 /src/ethosu_driver.c
parente07b1f9cfc5ae797c58af30637a5ca5c21c148e2 (diff)
downloadethos-u-core-driver-c6c1db160f8dbb817420d6bda906bc57a0defa2a.tar.gz
Avoid casting to integer of different size
Avoid casting pointers to integer types larger than the pointer itself, and let assignement handle the conversion. Change-Id: Icfd2401617f2cd0fc96c2a6a9ad8d2d8bec94c55
Diffstat (limited to 'src/ethosu_driver.c')
-rw-r--r--src/ethosu_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c
index a5f0bfe..c640f25 100644
--- a/src/ethosu_driver.c
+++ b/src/ethosu_driver.c
@@ -235,7 +235,7 @@ int ethosu_init_v2(const void *base_address, const void *fast_memory, const size
fast_memory,
fast_memory_size);
- ethosu_drv.fast_memory = (uint64_t)fast_memory;
+ ethosu_drv.fast_memory = (uint32_t)fast_memory;
ethosu_drv.fast_memory_size = fast_memory_size;
if (ETHOSU_SUCCESS != ethosu_dev_init(&ethosu_drv.dev, base_address))