Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0766-erts-Fix-warning-about-bitwise-operations-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0766-erts-Fix-warning-about-bitwise-operations-on-boolean.patch of Package erlang
From 791d4770074b1d2c8b8bd2b2990fdb3d89840a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Sun, 11 Jun 2023 07:09:04 +0200 Subject: [PATCH 2/3] erts: Fix warning about bitwise operations on booleans Modern versions of Clang warn when `&` and `|` are used on boolean operands. --- erts/emulator/beam/erl_term.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erts/emulator/beam/erl_term.h b/erts/emulator/beam/erl_term.h index 03211a6acd..49d2c430e3 100644 --- a/erts/emulator/beam/erl_term.h +++ b/erts/emulator/beam/erl_term.h @@ -954,12 +954,12 @@ typedef union { #define is_ordinary_ref_thing(x) \ ((*((Eterm *)(x)) == ERTS_REF_THING_HEADER) \ - & (((ErtsRefThing *) (x))->o.marker == ERTS_ORDINARY_REF_MARKER)) + && (((ErtsRefThing *) (x))->o.marker == ERTS_ORDINARY_REF_MARKER)) /* the _with_hdr variant usable when header word may be broken (copy_shared) */ #define is_magic_ref_thing_with_hdr(PTR,HDR) \ (((HDR) == ERTS_REF_THING_HEADER) \ - & (((ErtsRefThing *) (PTR))->o.marker != ERTS_ORDINARY_REF_MARKER)) + && (((ErtsRefThing *) (PTR))->o.marker != ERTS_ORDINARY_REF_MARKER)) #else /* Ordinary and magic references of different sizes... */ -- 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