diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,11 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.56 2008/10/28 12:54:25 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.57 2009/02/18 14:52:51 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | 7 | ||
8 | #include <ctype.h> | ||
9 | #include <limits.h> | 8 | #include <limits.h> |
10 | #include <stdio.h> | 9 | #include <stdio.h> |
11 | #include <stdlib.h> | 10 | #include <stdlib.h> |
@@ -19,6 +18,7 @@ | |||
19 | #include "lapi.h" | 18 | #include "lapi.h" |
20 | #include "lauxlib.h" | 19 | #include "lauxlib.h" |
21 | #include "lcode.h" | 20 | #include "lcode.h" |
21 | #include "lctype.h" | ||
22 | #include "ldebug.h" | 22 | #include "ldebug.h" |
23 | #include "ldo.h" | 23 | #include "ldo.h" |
24 | #include "lfunc.h" | 24 | #include "lfunc.h" |
@@ -826,7 +826,7 @@ static int getnum_aux (lua_State *L, const char **pc) { | |||
826 | sig = -1; | 826 | sig = -1; |
827 | (*pc)++; | 827 | (*pc)++; |
828 | } | 828 | } |
829 | while (isdigit(cast_int(**pc))) res = res*10 + (*(*pc)++) - '0'; | 829 | while (lisdigit(cast(unsigned char, **pc))) res = res*10 + (*(*pc)++) - '0'; |
830 | return sig*res; | 830 | return sig*res; |
831 | } | 831 | } |
832 | 832 | ||