Commit 76f85743 authored by Guido van Rossum's avatar Guido van Rossum

Add casts to CMPERROR macro to silence SunPro compiler warnings about

integer overflow in << operator.
parent e15132c2
......@@ -560,7 +560,7 @@ listappend(self, args)
/* CMPERROR is returned by our comparison function when an error
occurred. This is the largest negative integer (0x80000000 on a
32-bit system). */
#define CMPERROR (1 << (8*sizeof(int) - 1))
#define CMPERROR ( (int) ((unsigned int)1 << (8*sizeof(int) - 1)) )
/* Comparison function. Takes care of calling a user-supplied
comparison function (any callable Python object). Calls the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment