From f7de4cb2a817aa17615cc31199a0a5abd621ad9d Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 26 Feb 2005 22:43:49 +0000 Subject: Pat's patch about callframe id type, strtoll casting and errno applied. --- jim.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'jim.c') diff --git a/jim.c b/jim.c index 7762fac..b9e03c6 100644 --- a/jim.c +++ b/jim.c @@ -27,8 +27,6 @@ #include #include -extern int errno; - #include "jim.h" #ifdef HAVE_BACKTRACE @@ -117,7 +115,7 @@ static jim_wide Jim_Strtoll(const char *nptr, char **endptr, register int base) qbase = (unsigned)base; cutoff = neg ? (unsigned jim_wide)-(LLONG_MIN + LLONG_MAX) + LLONG_MAX : LLONG_MAX; - cutlim = cutoff % qbase; + cutlim = (int)(cutoff % qbase); cutoff /= qbase; for (acc = 0, any = 0;; c = *s++) { if (!isascii(c)) -- cgit v1.1