Commit e7aaa6f8 authored by Jack Jansen's avatar Jack Jansen

Incorrect argument for PyMacBuildwide()

parent 3207c407
...@@ -113,7 +113,7 @@ PyObject *PyMac_BuildEventRecord(EventRecord *); /* Convert EventRecord to PyObj ...@@ -113,7 +113,7 @@ PyObject *PyMac_BuildEventRecord(EventRecord *); /* Convert EventRecord to PyObj
int PyMac_GetFixed(PyObject *, Fixed *); /* argument parser for Fixed */ int PyMac_GetFixed(PyObject *, Fixed *); /* argument parser for Fixed */
PyObject *PyMac_BuildFixed(Fixed); /* Convert Fixed to PyObject */ PyObject *PyMac_BuildFixed(Fixed); /* Convert Fixed to PyObject */
int PyMac_Getwide(PyObject *, wide *); /* argument parser for wide */ int PyMac_Getwide(PyObject *, wide *); /* argument parser for wide */
PyObject *PyMac_Buildwide(wide); /* Convert wide to PyObject */ PyObject *PyMac_Buildwide(wide *); /* Convert wide to PyObject */
void PyMac_InitApplet(void); /* Initialize and run an Applet */ void PyMac_InitApplet(void); /* Initialize and run an Applet */
void PyMac_Initialize(void); /* Initialize function for embedding Python */ void PyMac_Initialize(void); /* Initialize function for embedding Python */
......
...@@ -1191,10 +1191,10 @@ PyMac_Getwide(PyObject *v, wide *rv) ...@@ -1191,10 +1191,10 @@ PyMac_Getwide(PyObject *v, wide *rv)
PyObject * PyObject *
PyMac_Buildwide(wide w) PyMac_Buildwide(wide *w)
{ {
if ( (w.hi == 0 && (w.lo & 0x80000000) == 0) || if ( (w->hi == 0 && (w->lo & 0x80000000) == 0) ||
(w.hi == -1 && (w.lo & 0x80000000) ) ) (w->hi == -1 && (w->lo & 0x80000000) ) )
return PyInt_FromLong(w.lo); return PyInt_FromLong(w->lo);
return Py_BuildValue("(ll)", w.hi, w.lo); return Py_BuildValue("(ll)", w->hi, w->lo);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment