commit | 644a12b00ce6a361089b488aa8096a6c86b52275 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Apr 09 19:24:53 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Apr 09 19:24:53 1997 +0000 |
tree | 73e3cfeeba809a3fc43f42d1883ebe9dffe3ffda | |
parent | 801776742082034cc6193530326af042d5af56a5 [diff] [blame] |
Tweaks to keep the Microsoft compiler quier.
diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index a869b46..ed0e526 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c
@@ -141,7 +141,7 @@ *ptr = str; if (ovf) { - result = ~0; + result = (unsigned long) ~0L; errno = ERANGE; } return result;