diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-10 14:00:06 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-10 14:00:06 (GMT) |
commit | 51b93984449ec79908036cc7a1a5922458f87690 (patch) | |
tree | f9b9340b996dc22d1dce8c20a8e2d541a831af21 /Python/pytime.c | |
parent | c60542b12bdf11487b959bbb304f4ea194be6a19 (diff) | |
download | cpython-51b93984449ec79908036cc7a1a5922458f87690.zip cpython-51b93984449ec79908036cc7a1a5922458f87690.tar.gz cpython-51b93984449ec79908036cc7a1a5922458f87690.tar.bz2 |
pytime: oops, fix typos on Windows
Diffstat (limited to 'Python/pytime.c')
-rw-r--r-- | Python/pytime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pytime.c b/Python/pytime.c index 1b20dc7..9d0b0fa 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -253,7 +253,7 @@ _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv, int raise) _PyTime_t t; int res = 0; - assert(sizeof(ts->tv_sec) <= sizeof(_PyTime_t)); + assert(sizeof(tv->tv_sec) <= sizeof(_PyTime_t)); t = (_PyTime_t)tv->tv_sec; if (_PyTime_check_mul_overflow(t, SEC_TO_NS)) { @@ -608,7 +608,7 @@ pymonotonic(_PyTime_t *tp, _Py_clock_info_t *info, int raise) assert(info == NULL || raise); ticks = GetTickCount64(); - assert(sizeof(result) <= sizeof(_PyTime_t)); + assert(sizeof(ticks) <= sizeof(_PyTime_t)); t = (_PyTime_t)ticks; if (_PyTime_check_mul_overflow(t, MS_TO_NS)) { |