[Python-checkins] [python/cpython] 69f3a5: tmtotuple(): use time_t for gmtoff (#1276) (#1635)

GitHub noreply at github.com
Wed May 17 17:45:47 EDT 2017


 Branch: refs/heads/3.6
 Home: https://github.com/python/cpython
 Commit: 69f3a5ac28041fac86897e0c90d98ad9fd6fa3f7
 https://github.com/python/cpython/commit/69f3a5ac28041fac86897e0c90d98ad9fd6fa3f7
 Author: Victor Stinner <victor.stinner at gmail.com>
 Date: 2017年05月17日 (2017年5月17日)
 Changed paths:
 M Modules/timemodule.c
 Log Message:
 -----------
 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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /