summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-18 21:44:11 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-18 21:44:11 +0100
commitdf1b19f3436b80956f8510dea4a320532fa546a6 (patch)
treefa41a51ff1beca72978c8138c61d636eeed983bc /Objective-C
parent2b9099f7de3b8e17f13bf501e6acc73857e463e8 (diff)
Objective-C layer: Fix an erronous assumption about ssize_t being equivalent to int.
darcs-hash:77922acb6a31eeacd3df23d00f9f67f0cd4fa21a
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/PyObjC/objc-runtime-gnu.m6
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;