From cd98dbdb29d25f648b90bd5be2d1cc0451ad803f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 15 Mar 2013 16:00:42 +0100 Subject: [PATCH] fix type of string constant length field in string table to Py_ssize_t (instead of long) --- Cython/Utility/ModuleSetupCode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 6382691..58e761f 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 /////////////// -- 2.7.4