summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2013-03-15 16:00:42 +0100
committerStefan Behnel <stefan_ml@behnel.de>2013-03-15 16:00:42 +0100
commitcd98dbdb29d25f648b90bd5be2d1cc0451ad803f (patch)
treeca2cff4b83accb3337a8b36c94d09754d3f97fe5 /Cython/Utility/ModuleSetupCode.c
parent74509f107831562dce7b24516af3c7163279cdf6 (diff)
downloadcython-cd98dbdb29d25f648b90bd5be2d1cc0451ad803f.tar.gz
fix type of string constant length field in string table to Py_ssize_t (instead of long)
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 6382691b0..58e761f30 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -288,7 +288,8 @@
# endif
#endif
-typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
+typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
+ const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
/////////////// ForceInitThreads.proto ///////////////