diff Python/mystrtoul.c @ 7979:cc47733b4dd2 legacy-trunk

Address warnings issued by the MSVC++ compiler
author Guido van Rossum <guido@python.org>
date Fri, 10 Apr 1998 21:52:06 +0000
parents 51f8d4da81e4
children 1171381fa01c
line wrap: on
line diff
--- a/Python/mystrtoul.c	Fri Apr 10 21:36:04 1998 +0000
+++ b/Python/mystrtoul.c	Fri Apr 10 21:52:06 1998 +0000
@@ -129,7 +129,7 @@
 	result = result * base + c;
 #ifndef MPW
 	if(base == 10) {
-		if(((long)(result - c) / base != temp))	/* overflow */
+		if(((long)(result - c) / base != (long)temp))	/* overflow */
 			ovf = 1;
 	}
 	else {