]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make last patch valid C89 so Windows compilers can deal with it.
authorThomas Wouters <thomas@python.org>
Sun, 28 May 2006 21:32:12 +0000 (21:32 +0000)
committerThomas Wouters <thomas@python.org>
Sun, 28 May 2006 21:32:12 +0000 (21:32 +0000)
Objects/exceptions.c

index 38e621d9cba810f601339b5169660754212d7a6b..2ac45fbdae6f0cf08e994c09502ad9a6fcb6ee2f 100644 (file)
@@ -1046,6 +1046,7 @@ SyntaxError_str(PySyntaxErrorObject *self)
     int have_filename = 0;
     int have_lineno = 0;
     char *buffer = NULL;
+    Py_ssize_t bufsize;
 
     if (self->msg)
         str = PyObject_Str(self->msg);
@@ -1065,7 +1066,7 @@ SyntaxError_str(PySyntaxErrorObject *self)
     if (!have_filename && !have_lineno)
         return str;
 
-    Py_ssize_t bufsize = PyString_GET_SIZE(str) + 64;
+    bufsize = PyString_GET_SIZE(str) + 64;
     if (have_filename)
         bufsize += PyString_GET_SIZE(self->filename);