From: Evan Hunt Date: Fri, 10 Jan 2014 19:20:46 +0000 (-0800) Subject: [master] one more win32 build error X-Git-Tag: v9.10.0a2~121 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f459b70c8ea8fb7aed93ff3b3104b837e009c6fd;p=thirdparty%2Fbind9.git [master] one more win32 build error --- diff --git a/lib/isc/win32/time.c b/lib/isc/win32/time.c index 510f2e06c17..925390e100a 100644 --- a/lib/isc/win32/time.c +++ b/lib/isc/win32/time.c @@ -248,14 +248,13 @@ isc_time_secondsastimet(const isc_time_t *t, time_t *secondsp) { time_t seconds; REQUIRE(t != NULL); - INSIST(t->nanoseconds < NS_PER_S); seconds = (time_t)isc_time_seconds(t); INSIST(sizeof(unsigned int) == sizeof(isc_uint32_t)); INSIST(sizeof(time_t) >= sizeof(isc_uint32_t)); - if (t->seconds > (~0U>>1) && seconds <= (time_t)(~0U>>1)) + if (isc_time_seconds(t) > (~0U>>1) && seconds <= (time_t)(~0U>>1)) return (ISC_R_RANGE); *secondsp = seconds;