[Python-checkins] [python/cpython] 0d659e: tmtotuple(): use time_t for gmtoff (#1276)

GitHub noreply at github.com
Mon Apr 24 19:22:44 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 0d659e5614cad512a1940125135b443b3eecb5d7
      https://github.com/python/cpython/commit/0d659e5614cad512a1940125135b443b3eecb5d7
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-04-25 (Tue, 25 Apr 2017)

  Changed paths:
    M Modules/timemodule.c

  Log Message:
  -----------
  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




More information about the Python-checkins mailing list