File 0456-erts-Fix-cl.exe-compiler-warning.patch of Package erlang

From b2ec154a94996c0c71511d46163a52fc4a457ea5 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 20 Jun 2022 14:20:14 +0200
Subject: [PATCH 4/4] erts: Fix cl.exe compiler warning

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

diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index bad3bc3f2f..5f24cca2f0 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -3701,7 +3701,7 @@ enc_term_int(TTBEncodeContext* ctx, ErtsAtomCacheMap *acmp, Eterm obj, byte* ep,
                 ep += 16;
                 put_int32(funp->fe->index, ep);
                 ep += 4;
-                put_int32(funp->num_free, ep);
+                put_int32((Uint32)funp->num_free, ep);
                 ep += 4;
                 ep = enc_atom(acmp, funp->fe->module, ep, dflags);
                 ep = enc_term(acmp, make_small(funp->fe->old_index), ep, dflags, off_heap);
-- 
2.35.3

openSUSE Build Service is sponsored by