Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0767-erts-Eliminate-warning-on-64-bit-platforms...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0767-erts-Eliminate-warning-on-64-bit-platforms.patch of Package erlang
From c02ab69cbf8ef1e26b7518acf5ec7c46f23ecdc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Sun, 11 Jun 2023 07:26:16 +0200 Subject: [PATCH 3/3] erts: Eliminate warning on 64-bit platforms Clang will warn that the result of a comparison in an assertion is always true on 64-bit platforms: beam/external.c:4741:24: warning: result of comparison of constant 2305843009213693951 with expression of type 'Uint32' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare] ASSERT(IS_BINARY_SIZE_OK(nu)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ --- erts/emulator/beam/external.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c index 081ce23e49..6768837ccf 100644 --- a/erts/emulator/beam/external.c +++ b/erts/emulator/beam/external.c @@ -4735,7 +4735,7 @@ dec_term_atom_common: } case BINARY_EXT: { - Uint32 nu = get_uint32(ep); + Uint nu = get_uint32(ep); ep += 4; ASSERT(IS_BINARY_SIZE_OK(nu)); @@ -4801,7 +4801,7 @@ dec_term_atom_common: Eterm bin; ErlSubBin* sb; Uint bitsize; - Uint32 nu = get_uint32(ep); + Uint nu = get_uint32(ep); ASSERT(IS_BINARY_SIZE_OK(nu)); -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor