From 644a12b00ce6a361089b488aa8096a6c86b52275 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 9 Apr 1997 19:24:53 +0000 Subject: Tweaks to keep the Microsoft compiler quier. --- Python/mystrtoul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/mystrtoul.c') diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index a869b4681a..ed0e52648d 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -141,7 +141,7 @@ int base; *ptr = str; if (ovf) { - result = ~0; + result = (unsigned long) ~0L; errno = ERANGE; } return result; -- cgit v1.2.1