File 0832-Fix-warning-about-type-cast-from-unsigned-int-to-poi.patch of Package erlang

From 870da6616a7f2a59dabdf33604e1fdcd04a6bee2 Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Mon, 28 Aug 2023 17:33:40 +0200
Subject: [PATCH 2/5] Fix warning about type cast from unsigned int to pointer

---
 erts/emulator/beam/erl_db_hash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c
index fa8a8c15ec..b94ff2ccd2 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -188,7 +188,7 @@ DEC_NITEMS(DbTableHash* DB, DbTableHashLockAndCounter* LCK_CTR, HashValue HASH)
 #define BUCKET(tb, i) SEGTAB(tb)[SLOT_IX_TO_SEG_IX(i)]->buckets[(i) & EXT_SEGSZ_MASK]
 
 #ifdef DEBUG
-#  define DBG_BUCKET_INACTIVE ((HashDbTerm*)0xdead5107)
+#  define DBG_BUCKET_INACTIVE ((HashDbTerm*)(UWord)0xdead5107)
 #endif
 
 
-- 
2.35.3

openSUSE Build Service is sponsored by