Fix 32-bit build.
libc/tzcode/localtime.c: In function 'differ_by_repeat': libc/tzcode/localtime.c:338:2: error: comparison is always false due to limited range of data type [-Werror=type-limits] Change-Id: Ic84be6391a66e9d50ed98f41d865387c77a60ffa
This commit is contained in:
parent
14b66bffb0
commit
51aeff7021
@ -335,7 +335,9 @@ differ_by_repeat(const time_t t1, const time_t t0)
|
||||
{
|
||||
if (TYPE_BIT(time_t) - TYPE_SIGNED(time_t) < SECSPERREPEAT_BITS)
|
||||
return 0;
|
||||
#if __LP64__ // 32-bit Android only has a signed 32-bit time_t; 64-bit Android is fixed.
|
||||
return t1 - t0 == SECSPERREPEAT;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user