From: Guido van Rossum Date: Sun, 11 Aug 2002 14:04:13 +0000 (+0000) Subject: Use a better check for overflow from a<> b) != a || (c < 0 && a > 0)) { + c = a < 0 ? ~a : a; + c >>= LONG_BIT - 1 - b; + if (c) { if (PyErr_Warn(PyExc_DeprecationWarning, "x<