Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/time



On Mon, Dec 14, 2009 at 05:51:57AM +0000, Matt Thomas wrote:
 > Suppress a warning if time_t is __int64_t

-                               } while ((sse * 10 <= TIME_MAX) &&
+                               } while (((uint64_t)(sse * 10) <= TIME_MAX) &&

Don't you want ((uint64_t)sse * 10 <= TIME_MAX), that is, cast before
multiplying?

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index