]> git.kaiwu.me - nginx.git/commit
Configure: fixed type max value detection.
authorRuslan Ermilov <ru@nginx.com>
Tue, 17 Mar 2015 23:04:39 +0000 (02:04 +0300)
committerRuslan Ermilov <ru@nginx.com>
Tue, 17 Mar 2015 23:04:39 +0000 (02:04 +0300)
commitb89e3bc03448cb83cc339781a6037e6a73954c01
treeaee71b26227a58d87e8cf75532cd0642c5f954ab
parent4fe0a09942f8aed90f84c77969847980e9aadd98
Configure: fixed type max value detection.

The code tried to use suffixes for "long" and "long long" types, but
it never worked as intended due to the bug in the shell code.  Also,
the max value for any 64-bit type other than "long long" on platforms
with 32-bit "long" would be incorrect if the bug was fixed.

So instead of fixing the bug in the shell code, always use the "int"
constant for 32-bit types, and "long long" constant for 64-bit types.
auto/types/sizeof