]> sourceware.org Git - newlib-cygwin.git/commit
Remove harmful casts in gmtime_r()
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 7 Sep 2017 13:01:47 +0000 (15:01 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 7 Sep 2017 13:39:34 +0000 (15:39 +0200)
commitad45b86533a47ae33ec99cebc61aee96b57e17a5
tree615aa64ce907ed8a554353ff1d3fbf04666f2d2f
parentf9205f1d470ed1a214b841b6d2fd60fea14954cb
Remove harmful casts in gmtime_r()

In case time_t is long, then the cast to long is a nop.  In case time_t
is __int_least64_t, then the cast to long may truncate the value before
the division.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/time/gmtime_r.c
This page took 0.029544 seconds and 5 git commands to generate.