[Python-checkins] r46512 - python/trunk/Objects/exceptions.c
thomas.wouters
python-checkins at python.org
Sun May 28 23:32:12 CEST 2006
Author: thomas.wouters
Date: Sun May 28 23:32:12 2006
New Revision: 46512
Modified:
python/trunk/Objects/exceptions.c
Log:
Make last patch valid C89 so Windows compilers can deal with it.
Modified: python/trunk/Objects/exceptions.c
==============================================================================
--- python/trunk/Objects/exceptions.c (original)
+++ python/trunk/Objects/exceptions.c Sun May 28 23:32:12 2006
@@ -1046,6 +1046,7 @@
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 @@
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);
More information about the Python-checkins
mailing list