BUILD: tools: fix a build warning on some 32-bit archs
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Mar 2019 15:31:18 +0000 (16:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Mar 2019 15:33:15 +0000 (16:33 +0100)
commit9b6be3bbeb40a4e606980f70fe2a8db64c33a44e
tree6be5fd87b69a291afb4e871de52d84c1fe8967b7
parent93e02d8b73f3dc31e85c5029def8647d5e5e9136
BUILD: tools: fix a build warning on some 32-bit archs

Some recent versions of gcc apparently can detect that x >> 32 will not
work on a 32-bit architecture, but are failing to see that the code will
not be built since it's enclosed in "if (sizeof(LONG) > 4)" or equivalent.
Just shift right twice by 16 bits in this case, the compiler correctly
replaces it by a single 32-bit shift.

No backport is needed.
src/standard.c