BUILD: tree-wide: mark a few numeric constants as explicitly long long
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Jan 2022 08:39:24 +0000 (09:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 1 Mar 2022 09:56:21 +0000 (10:56 +0100)
commitd0642f93b778ff38b01d1e70a93ef15d0a7f57a4
treeeabc89ef6050147180da2ef625240342c7a3653d
parent4bb1483c999fa00052137293229c926aa66e64bf
BUILD: tree-wide: mark a few numeric constants as explicitly long long

At a few places in the code the switch/case ond flags are tested against
64-bit constants without explicitly being marked as long long. Some
32-bit compilers complain that the constant is too large for a long, and
other likely always use long long there. Better fix that as it's uncertain
what others which do not complain do. It may be backported to avoid doubts
on uncommon platforms if needed, as it touches very few areas.

(cherry picked from commit 8f0b4e97e78f62eac43e240155192131e7c6d072)
[wt: 2.5 was reporting warnings on a 32-bit platform with gcc-4.4]
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/h1.h
include/haproxy/intops.h
src/h1_htx.c