summaryrefslogtreecommitdiff
path: root/Python/mystrtoul.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-09 19:24:53 +0000
committerGuido van Rossum <guido@python.org>1997-04-09 19:24:53 +0000
commit572909b0c147a675c8510f8fdea30b16904c80b9 (patch)
tree996859d6b5ae3c8ede08baa7e49ad0160e65ba37 /Python/mystrtoul.c
parent542cc2b767419e6fea38f5e54b4ab64f2e2751fa (diff)
downloadcpython-572909b0c147a675c8510f8fdea30b16904c80b9.tar.gz
Tweaks to keep the Microsoft compiler quier.
Diffstat (limited to 'Python/mystrtoul.c')
-rw-r--r--Python/mystrtoul.c2
1 files changed, 1 insertions, 1 deletions
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;