From 826638e203ededd31825dbf767130e3a17d4218c Mon Sep 17 00:00:00 2001 From: Rajasekaran Kalidoss Date: Fri, 26 Apr 2024 15:37:56 +0200 Subject: Fix pointer-to-int-cast compiler warning A void pointer(fast_memory) was type casted to uint64_t. This resulted in a compiler warning [-Wpointer-to-int-cast]. This patch fixes the warning. Change-Id: I61d4a77664c7a2af7b9020f8a98c10d27c78334f Signed-off-by: Rajasekaran Kalidoss --- src/ethosu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ethosu_driver.c') diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c index dead0b9..5128455 100644 --- a/src/ethosu_driver.c +++ b/src/ethosu_driver.c @@ -425,7 +425,7 @@ int ethosu_init(struct ethosu_driver *drv, } } - drv->fast_memory = (uint64_t)fast_memory; + drv->fast_memory = (uintptr_t)fast_memory; drv->fast_memory_size = fast_memory_size; drv->power_request_counter = 0; -- cgit v1.2.1