Author: guido.van.rossum
Date: Fri Aug 18 01:09:57 2006
New Revision: 51348
Modified:
python/branches/p3yk/Objects/typeobject.c
Log:
Fix non-C89-compatible syntax.
Modified: python/branches/p3yk/Objects/typeobject.c
==============================================================================
--- python/branches/p3yk/Objects/typeobject.c (original)
+++ python/branches/p3yk/Objects/typeobject.c Fri Aug 18 01:09:57 2006
@@ -4420,7 +4420,7 @@
static long
slot_tp_hash(PyObject *self)
{
- PyObject *func;
+ PyObject *func, *res;
static PyObject *hash_str;
long h;
@@ -4438,7 +4438,7 @@
return -1;
}
- PyObject *res = PyEval_CallObject(func, NULL);
+ res = PyEval_CallObject(func, NULL);
Py_DECREF(func);
if (res == NULL)
return -1;
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins