From 24455eedb9e8939f8a28ca0101a6f2d171e1b2f9 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Tue, 8 Feb 2022 13:33:22 +0100 Subject: Fixing compilation warning Change-Id: I155d79a87f9a9a0dc26c145415cc7cdd19533639 --- 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 3383ef3..866b94c 100644 --- a/src/ethosu_driver.c +++ b/src/ethosu_driver.c @@ -485,7 +485,7 @@ int ethosu_invoke_v3(struct ethosu_driver *drv, void *user_arg) { const struct cop_data_s *data_ptr = custom_data_ptr; - const struct cop_data_s *data_end = custom_data_ptr + custom_data_size; + const struct cop_data_s *data_end = (struct cop_data_s *)((ptrdiff_t)custom_data_ptr + custom_data_size); int return_code = 0; // First word in custom_data_ptr should contain "Custom Operator Payload 1" -- cgit v1.2.1