From df9957a7c4efbf5c51a3fd4fba7be3dd03eca0ea Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 8 Nov 2018 21:14:58 +0000 Subject: [PATCH] eina debug - fix 32bit warning for casting down to 32bit ptrs --- src/lib/eina/eina_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c index d46b18bb00..7ec64e7b69 100644 --- a/src/lib/eina/eina_debug.c +++ b/src/lib/eina/eina_debug.c @@ -336,7 +336,7 @@ _callbacks_register_cb(Eina_Debug_Session *session, int src_id EINA_UNUSED, void memcpy(&info_64, buffer, sizeof(uint64_t)); // cast to a ptr, so on 32bit we just take the lower 32bits and on 64 // we take all of it so we're fine - info = (_opcode_reply_info *)info_64; + info = (_opcode_reply_info *)(uintptr_t)info_64; if (!info) return EINA_FALSE; EINA_LIST_FOREACH(session->opcode_reply_infos, itr, info2)