commit | 9b6be3bbeb40a4e606980f70fe2a8db64c33a44e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Mar 18 16:31:18 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Mar 18 16:33:15 2019 +0100 |
tree | 6be5fd87b69a291afb4e871de52d84c1fe8967b7 | |
parent | 93e02d8b73f3dc31e85c5029def8647d5e5e9136 [diff] |
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.