[pypy-svn] r74965 - pypy/trunk/pypy/module/cpyext/test
afa at codespeak.net
afa at codespeak.net
Mon May 31 11:36:02 CEST 2010
Author: afa
Date: Mon May 31 11:36:01 2010
New Revision: 74965
Modified:
pypy/trunk/pypy/module/cpyext/test/comparisons.c
Log:
remove c99-ism.
Modified: pypy/trunk/pypy/module/cpyext/test/comparisons.c
==============================================================================
--- pypy/trunk/pypy/module/cpyext/test/comparisons.c (original)
+++ pypy/trunk/pypy/module/cpyext/test/comparisons.c Mon May 31 11:36:01 2010
@@ -6,11 +6,12 @@
static PyObject* cmp_richcmp(PyObject *self, PyObject *other, int opid) {
+ long val;
if ((opid != Py_EQ && opid != Py_NE) || !PyInt_CheckExact(other)) {
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
- long val = PyLong_AsLong(other);
+ val = PyLong_AsLong(other);
if (opid == Py_EQ) {
return PyBool_FromLong(val == 3);
}
More information about the Pypy-commit
mailing list