File 6282-erts-Fix-bad-assert-in-debug-build.patch of Package erlang

From 31a2907cfb78761747e766190b9ecce02c4c5893 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Mon, 19 Jun 2023 10:57:00 +0200
Subject: [PATCH] erts: Fix bad assert in debug build

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

diff --git a/erts/emulator/beam/erl_bits.c b/erts/emulator/beam/erl_bits.c
index 541753f9e2..0dc1d84627 100644
--- a/erts/emulator/beam/erl_bits.c
+++ b/erts/emulator/beam/erl_bits.c
@@ -580,7 +580,7 @@ fmt_small(byte *buf, Uint num_bytes, Eterm arg, Uint num_bits, Uint flags)
     Uint bit_offset;
     Sint val;
 
-    ASSERT(is_small(val));
+    ASSERT(is_small(arg));
     ASSERT(num_bits != 0);      /* Tested by caller */
 
     bit_offset = BIT_OFFSET(num_bits);
-- 
2.35.3

openSUSE Build Service is sponsored by