mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-12 15:20: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(
|
rv = PyObject_CallFunction(
|
||||||
(PyObject*)PyDateTimeAPI->DeltaType, "LLO",
|
(PyObject*)PyDateTimeAPI->DeltaType, "iiO", 0, 0, us);
|
||||||
0L, 0L, us);
|
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
Py_XDECREF(us);
|
Py_XDECREF(us);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user