summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-02-27 17:49:41 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-02-27 17:49:41 (GMT)
commit9e777e5c6ad7e1ab24742c2578c66f692bc19eb9 (patch)
tree8fa092fe3ea01459f3a28bf5ee85acd28dbb50a9
parent91e742fb6bb59c5a787f4b8a2584fdab4d82dd73 (diff)
downloadcpython-9e777e5c6ad7e1ab24742c2578c66f692bc19eb9.zip
cpython-9e777e5c6ad7e1ab24742c2578c66f692bc19eb9.tar.gz
cpython-9e777e5c6ad7e1ab24742c2578c66f692bc19eb9.tar.bz2
do_mkvalue(): Squash compiler warnings about mixing
signed and unsigned types in comparison.
-rw-r--r--Python/modsupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 3b4c517..ad5b675 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -307,7 +307,7 @@ do_mkvalue(char **p_format, va_list *p_va)
{
unsigned int n;
n = va_arg(*p_va, unsigned int);
- if (n > PyInt_GetMax())
+ if (n > (unsigned long)PyInt_GetMax())
return PyLong_FromUnsignedLong((unsigned long)n);
else
return PyInt_FromLong(n);
@@ -320,7 +320,7 @@ do_mkvalue(char **p_format, va_list *p_va)
{
unsigned long n;
n = va_arg(*p_va, unsigned long);
- if (n > PyInt_GetMax())
+ if (n > (unsigned long)PyInt_GetMax())
return PyLong_FromUnsignedLong(n);
else
return PyInt_FromLong(n);