Menu

#1 IpatchUnit_DLS.c:278: possible bad test ?

1.0
open
nobody
None
2014-10-13
2014-10-13
dcb
No

libinstpatch-1.0.0/libinstpatch/IpatchUnit_DLS.c:278:20: warning: comparison of constant 2147483648 with expression of type 'int' is always false [-Wtautological-constant-out-of-range-compare]

if (dls_abs_time == IPATCH_UNIT_DLS_ABS_TIME_0SECS)

define IPATCH_UNIT_DLS_ABS_TIME_0SECS 0x80000000L

but longs on a 64 bit box are 64 bit, so this value
is in band.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB