From 0874fe941fccef0bc04ab49bda63b793a58b0ae2 Mon Sep 17 00:00:00 2001 From: Rose Date: Thu, 18 Apr 2024 15:51:38 -0400 Subject: [PATCH] Have all codepaths do *(void **)dest = (void *)ptr; There is no point in converting a pointer to an integer, as this code will do the same thing. --- src/BlocksRuntime/runtime.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/BlocksRuntime/runtime.c b/src/BlocksRuntime/runtime.c index 4b7d4bfa2..f4d44e496 100644 --- a/src/BlocksRuntime/runtime.c +++ b/src/BlocksRuntime/runtime.c @@ -172,11 +172,7 @@ static void _Block_release_object_default(const void *ptr) { } static void _Block_assign_weak_default(const void *ptr, void *dest) { -#if !defined(_WIN32) - *(long *)dest = (long)ptr; -#else *(void **)dest = (void *)ptr; -#endif } static void _Block_memmove_default(void *dst, void *src, unsigned long size) {