aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/jim.c b/jim.c
index 7762fac..b9e03c6 100644
--- a/jim.c
+++ b/jim.c
@@ -27,8 +27,6 @@
#include <errno.h>
#include <time.h>
-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))