From bbf4be2c2fee581606bb5fdeadefc8b104bc204f Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 23 Apr 1998 13:20:17 +0000 Subject: Incorrect argument for PyMacBuildwide() --- Mac/Include/macglue.h | 2 +- Mac/Python/macglue.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index 9d2a92f..3f19548 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -113,7 +113,7 @@ PyObject *PyMac_BuildEventRecord(EventRecord *); /* Convert EventRecord to PyObj int PyMac_GetFixed(PyObject *, Fixed *); /* argument parser for Fixed */ PyObject *PyMac_BuildFixed(Fixed); /* Convert Fixed to PyObject */ 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_Initialize(void); /* Initialize function for embedding Python */ diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index ac1bbbf..98517e1 100644 --- a/Mac/Python/macglue.c +++ b/Mac/Python/macglue.c @@ -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); } -- cgit v0.12