]> granicus.if.org Git - python/commitdiff
Patch #1494387: SVN longobject.c compiler warnings
authorTim Peters <tim.peters@gmail.com>
Thu, 25 May 2006 22:28:46 +0000 (22:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 25 May 2006 22:28:46 +0000 (22:28 +0000)
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).

Objects/longobject.c

index cca7b38378c3996f622883d6cf8486e57351025f..6e4aa71d41a7ec7fdb8e6fa55766747ddbb191d8 100644 (file)
@@ -40,7 +40,7 @@ static PyObject *long_format(PyObject *aa, int base, int addL);
 #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.