]> granicus.if.org Git - python/commit
tmtotuple(): use time_t for gmtoff (#1276) (#1635)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 May 2017 21:45:45 +0000 (14:45 -0700)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 21:45:45 +0000 (14:45 -0700)
commit69f3a5ac28041fac86897e0c90d98ad9fd6fa3f7
tree178153618dde23a83d411a3e9268bfe74f2ceceb
parent0d1727835f44492c7357b013d94539e3891adf77
tmtotuple(): use time_t for gmtoff (#1276) (#1635)

timegm() return type is time_t, not int. Use time_t to prevent the
following compiler warning on Windows:

timemodule.c: warning C4244: '=': conversion from 'time_t' to 'int',
              possible loss of data
(cherry picked from commit 0d659e5614cad512a1940125135b443b3eecb5d7)
Modules/timemodule.c