Typecode for AHTOCType was wrong. Fixed.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 30 Aug 2002 23:02:09 +0000 (23:02 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 30 Aug 2002 23:02:09 +0000 (23:02 +0000)
Mac/Modules/ah/_AHmodule.c
Mac/Modules/ah/ahsupport.py

index 7543e54f3a59ed86ca2b076049f985332204e697..cf6907640790a7c9fe04371ca374086cd8f1d490 100644 (file)
@@ -52,7 +52,7 @@ static PyObject *Ah_AHGotoMainTOC(PyObject *_self, PyObject *_args)
        PyObject *_res = NULL;
        OSStatus _err;
        AHTOCType toctype;
-       if (!PyArg_ParseTuple(_args, "s",
+       if (!PyArg_ParseTuple(_args, "h",
                              &toctype))
                return NULL;
        _err = AHGotoMainTOC(toctype);
index b07c779dd473f8b00524d4caf7c724d65db8d5ab..a1e6d00ac4779281ecbe354a79d3b9dde738fb98 100644 (file)
@@ -17,7 +17,7 @@ OUTPUTFILE = MODNAME + "module.c"     # The file generated by this program
 from macsupport import *
 
 # Create the type objects
-AHTOCType = Type("AHTOCType", "s")
+AHTOCType = Type("AHTOCType", "h")
 
 includestuff = includestuff + """
 #ifdef WITHOUT_FRAMEWORKS