mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Incorrect argument for PyMacBuildwide()
This commit is contained in:
parent
301b5bea3f
commit
bbf4be2c2f
2 changed files with 6 additions and 6 deletions
|
@ -1191,10 +1191,10 @@ PyMac_Getwide(PyObject *v, wide *rv)
|
|||
|
||||
|
||||
PyObject *
|
||||
PyMac_Buildwide(wide w)
|
||||
PyMac_Buildwide(wide *w)
|
||||
{
|
||||
if ( (w.hi == 0 && (w.lo & 0x80000000) == 0) ||
|
||||
(w.hi == -1 && (w.lo & 0x80000000) ) )
|
||||
return PyInt_FromLong(w.lo);
|
||||
return Py_BuildValue("(ll)", w.hi, w.lo);
|
||||
if ( (w->hi == 0 && (w->lo & 0x80000000) == 0) ||
|
||||
(w->hi == -1 && (w->lo & 0x80000000) ) )
|
||||
return PyInt_FromLong(w->lo);
|
||||
return Py_BuildValue("(ll)", w->hi, w->lo);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue