HomeFreeBSD

net-p2p/c-lightning: attempt to unbreak on arm64

Description

net-p2p/c-lightning: attempt to unbreak on arm64

Since arm64 uses two's complement (char)0xff is the same as -1.
Changing to use the latter should silence this compiler error:

ccan/ccan/base64/base64.c:34:10: error: result of comparison of constant 255 with expression of type 'int8_t' (aka 'signed char') is always false [-Werror,-Wtautological-constant-out-of-range-compare]

if (ret == (char)0xff) {
    ~~~ ^  ~~~~~~~~~~

Details

Provenance
vdAuthored on Jul 18 2023, 12:08 PM
Parents
R11:57a6ad398471: games/pysolfc: Update to 2.21.0
Branches
Unknown
Tags
Unknown

Event Timeline

Vasil Dimov <vd@FreeBSD.org> committed R11:b8e169236717: net-p2p/c-lightning: attempt to unbreak on arm64 (authored by Vasil Dimov <vd@FreeBSD.org>).Jul 18 2023, 12:11 PM