]> The Tcpdump Group git mirrors - tcpdump/commit
Use INT32_MIN to check for the smallest possible 32-bit signed value.
authorGuy Harris <[email protected]>
Tue, 17 Jan 2017 23:25:35 +0000 (15:25 -0800)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:42 +0000 (09:16 +0100)
commit8ca206d7049537ec2e1c9d5830da1161e68de1ec
tree43053166dded16386f996ed8602e5c1be73f234f
parent12d939c3e9ec5c336fa7b42f6199b282e493aad7
Use INT32_MIN to check for the smallest possible 32-bit signed value.

-2147483648 provokes warnings, for various reasons involving the
definition of a constant in C, the rules of picking the type of a
constant, and the rules for determining the type of an expression
involving an integral value and the - operator.  (Note that
-2147483648isn't a decimal-constant in C90 or C99, as a decimal-constant
can't contain a -.  Therefore, it's a constant expression, consisting of
the - operator applied to the constant 2147483648.)

So we use INT32_MIN, which should at least make an effort to avoid those
warnings.
util-print.c