Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe9acde

Browse files
committed
Typecode for AHTOCType was wrong. Fixed.
1 parent 4e39949 commit fe9acde

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Modules/ah/_AHmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static PyObject *Ah_AHGotoMainTOC(PyObject *_self, PyObject *_args)
5252
PyObject *_res = NULL;
5353
OSStatus _err;
5454
AHTOCType toctype;
55-
if (!PyArg_ParseTuple(_args, "s",
55+
if (!PyArg_ParseTuple(_args, "h",
5656
&toctype))
5757
return NULL;
5858
_err = AHGotoMainTOC(toctype);

Mac/Modules/ah/ahsupport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from macsupport import *
1818

1919
# Create the type objects
20-
AHTOCType = Type("AHTOCType", "s")
20+
AHTOCType = Type("AHTOCType", "h")
2121

2222
includestuff = includestuff + """
2323
#ifdef WITHOUT_FRAMEWORKS

0 commit comments

Comments
 (0)