[Python-checkins] r42385 - python/trunk/Parser/parsetok.c

martin.v.loewis python-checkins at python.org
Wed Feb 15 20:56:19 CET 2006


Author: martin.v.loewis
Date: Wed Feb 15 20:56:18 2006
New Revision: 42385

Modified:
   python/trunk/Parser/parsetok.c
Log:
Remove C99ism.

Modified: python/trunk/Parser/parsetok.c
==============================================================================
--- python/trunk/Parser/parsetok.c	(original)
+++ python/trunk/Parser/parsetok.c	Wed Feb 15 20:56:18 2006
@@ -186,9 +186,10 @@
 			err_ret->error = E_EOF;
 		err_ret->lineno = tok->lineno;
 		if (tok->buf != NULL) {
+			size_t len;
 			assert(tok->cur - tok->buf < INT_MAX);
 			err_ret->offset = (int)(tok->cur - tok->buf);
-			size_t len = tok->inp - tok->buf;
+			len = tok->inp - tok->buf;
 			err_ret->text = (char *) PyObject_MALLOC(len + 1);
 			if (err_ret->text != NULL) {
 				if (len > 0)


More information about the Python-checkins mailing list