Oops, 'k' is the new format code for un unchecked 32 bit quantity,

not 'K'.
This commit is contained in:
Jack Jansen 2003-04-17 20:44:21 +00:00
parent ecc6635ae4
commit 84c2b1b9aa
2 changed files with 6 additions and 6 deletions

View File

@ -170,7 +170,7 @@ filldialogoptions(PyObject *d,
if ( !PyArg_Parse(value, "H", &opt->version) )
return 0;
} else if( strcmp(keystr, "dialogOptionFlags") == 0 ) {
if ( !PyArg_Parse(value, "K", &opt->dialogOptionFlags) )
if ( !PyArg_Parse(value, "k", &opt->dialogOptionFlags) )
return 0;
} else if( strcmp(keystr, "location") == 0 ) {
if ( !PyArg_Parse(value, "O&", PyMac_GetPoint, &opt->location) )
@ -247,7 +247,7 @@ nav_NavTranslateFile(navrrobject *self, PyObject *args)
NavTranslationOptions howToTranslate;
OSErr err;
if (!PyArg_ParseTuple(args, "K", &howToTranslate))
if (!PyArg_ParseTuple(args, "k", &howToTranslate))
return NULL;
err = NavTranslateFile(&self->itself, howToTranslate);
if ( err ) {
@ -268,7 +268,7 @@ nav_NavCompleteSave(navrrobject *self, PyObject *args)
NavTranslationOptions howToTranslate;
OSErr err;
if (!PyArg_ParseTuple(args, "K", &howToTranslate))
if (!PyArg_ParseTuple(args, "k", &howToTranslate))
return NULL;
err = NavCompleteSave(&self->itself, howToTranslate);
if ( err ) {
@ -528,7 +528,7 @@ nav_NavAskSaveChanges(PyObject *self, PyObject *args, PyObject *kw)
OSErr err;
if ( kw && PyObject_IsTrue(kw) ) {
if (!PyArg_ParseTuple(args, "K", &action))
if (!PyArg_ParseTuple(args, "k", &action))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "lO!", &action, &PyDict_Type, &dict))

View File

@ -415,7 +415,7 @@ PyMac_BuildPoint(Point p)
int
PyMac_GetEventRecord(PyObject *v, EventRecord *e)
{
return PyArg_Parse(v, "(HKK(hh)H)",
return PyArg_Parse(v, "(Hkk(hh)H)",
&e->what,
&e->message,
&e->when,
@ -471,7 +471,7 @@ PyMac_Getwide(PyObject *v, wide *rv)
rv->hi = -1;
return 1;
}
return PyArg_Parse(v, "(KK)", &rv->hi, &rv->lo);
return PyArg_Parse(v, "(kk)", &rv->hi, &rv->lo);
}