From 6905ae900bc5ac4bd1374ff3c625a236b53f80dd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Feb 2009 14:33:51 -0300 Subject: Lua now uses "homemade" lctype (instead of ctype.h from ANSI C) --- ltests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 8a81ce76..5c1bc876 100644 --- a/ltests.c +++ b/ltests.c @@ -1,11 +1,10 @@ /* -** $Id: ltests.c,v 2.56 2008/10/28 12:54:25 roberto Exp roberto $ +** $Id: ltests.c,v 2.57 2009/02/18 14:52:51 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ -#include #include #include #include @@ -19,6 +18,7 @@ #include "lapi.h" #include "lauxlib.h" #include "lcode.h" +#include "lctype.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" @@ -826,7 +826,7 @@ static int getnum_aux (lua_State *L, const char **pc) { sig = -1; (*pc)++; } - while (isdigit(cast_int(**pc))) res = res*10 + (*(*pc)++) - '0'; + while (lisdigit(cast(unsigned char, **pc))) res = res*10 + (*(*pc)++) - '0'; return sig*res; } -- cgit v1.2.3-55-g6feb