Fixed parsing interval from micros on 32 bit

Using integers the wrong size. Faithfully segfaulting since 1970.
This commit is contained in:
Daniele Varrazzo 2017-06-17 01:36:39 +01:00
parent 70a2d2238e
commit 49ce622a86

View File

@ -305,8 +305,7 @@ interval_from_usecs(const char *str)
}
rv = PyObject_CallFunction(
(PyObject*)PyDateTimeAPI->DeltaType, "LLO",
0L, 0L, us);
(PyObject*)PyDateTimeAPI->DeltaType, "iiO", 0, 0, us);
exit:
Py_XDECREF(us);