diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-03-18 21:44:11 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-03-18 21:44:11 +0100 |
commit | df1b19f3436b80956f8510dea4a320532fa546a6 (patch) | |
tree | fa41a51ff1beca72978c8138c61d636eeed983bc /Objective-C/PyObjC | |
parent | 2b9099f7de3b8e17f13bf501e6acc73857e463e8 (diff) |
Objective-C layer: Fix an erronous assumption about ssize_t being equivalent to int.
darcs-hash:77922acb6a31eeacd3df23d00f9f67f0cd4fa21a
Diffstat (limited to 'Objective-C/PyObjC')
-rw-r--r-- | Objective-C/PyObjC/objc-runtime-gnu.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objective-C/PyObjC/objc-runtime-gnu.m b/Objective-C/PyObjC/objc-runtime-gnu.m index df868e4..a130714 100644 --- a/Objective-C/PyObjC/objc-runtime-gnu.m +++ b/Objective-C/PyObjC/objc-runtime-gnu.m @@ -10,7 +10,7 @@ #if defined(GNU_RUNTIME) #include "objc-runtime-gnu.h" -struct objc_protocol_list* PyObjCRT_AllocProtocolList(int numProtocols) +struct objc_protocol_list* PyObjCRT_AllocProtocolList(ssize_t numProtocols) { struct objc_protocol_list *plist; @@ -33,7 +33,7 @@ int PyObjCRT_SetupClass( const char*name, Class superCls, Class rootCls, - int ivarSize, + ssize_t ivarSize, struct objc_ivar_list* ivarList, struct objc_protocol_list* protocolList ) @@ -128,7 +128,7 @@ void PyObjCRT_ClearClass(Class cls) } } -struct objc_method_list *PyObjCRT_AllocMethodList(int numMethods) +struct objc_method_list *PyObjCRT_AllocMethodList(ssize_t numMethods) { struct objc_method_list *mlist; |