diff options
Diffstat (limited to 'Python/mystrtoul.c')
-rw-r--r-- | Python/mystrtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ int base; *ptr = str; if (ovf) { - result = ~0; + result = (unsigned long) ~0L; errno = ERANGE; } return result; |