]> granicus.if.org Git - python/commit
tmtotuple(): use time_t for gmtoff (#1276)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 24 Apr 2017 23:22:42 +0000 (01:22 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2017 23:22:42 +0000 (01:22 +0200)
commit0d659e5614cad512a1940125135b443b3eecb5d7
tree29cebf34082c5e0f748b2a177d39c6fff3f44c6b
parent4bcfa3a2363c30d406c6826e291b30c33a649d18
tmtotuple(): use time_t for gmtoff (#1276)

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
Modules/timemodule.c