mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Fixed parsing interval from micros on 32 bit
Using integers the wrong size. Faithfully segfaulting since 1970.
This commit is contained in:
parent
70a2d2238e
commit
49ce622a86
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user