From 643d59cbd6f86516b083b958d76750b3626da3d6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 11 Aug 2002 14:04:13 +0000 Subject: [PATCH] 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<