[Python-checkins] r46266 - python/trunk/Objects/longobject.c
tim.peters
python-checkins at python.org
Fri May 26 00:28:46 CEST 2006
Author: tim.peters
Date: Fri May 26 00:28:46 2006
New Revision: 46266
Modified:
python/trunk/Objects/longobject.c
Log:
Patch #1494387: SVN longobject.c compiler warnings
The SIGCHECK macro defined here has always been bizarre, but
it apparently causes compiler warnings on "Sun Studio 11".
I believe the warnings are bogus, but it doesn't hurt to make
the macro definition saner.
Bugfix candidate (but I'm not going to bother).
Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c (original)
+++ python/trunk/Objects/longobject.c Fri May 26 00:28:46 2006
@@ -40,7 +40,7 @@
#define SIGCHECK(PyTryBlock) \
if (--_Py_Ticker < 0) { \
_Py_Ticker = _Py_CheckInterval; \
- if (PyErr_CheckSignals()) { PyTryBlock; } \
+ if (PyErr_CheckSignals()) PyTryBlock \
}
/* Normalize (remove leading zeros from) a long int object.
More information about the Python-checkins
mailing list