summaryrefslogtreecommitdiffstats
path: root/Python/mystrtoul.c
diff options
context:
space:
mode:
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 46c52b8..f8135e1 100644
--- a/Python/mystrtoul.c
+++ b/Python/mystrtoul.c
@@ -129,7 +129,7 @@ int base;
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 {