From 139d562861a939ef0a8456c84874b783a7861a24 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 27 May 2009 13:51:15 -0300 Subject: type of 'luai_ctype_' array changed to unsigned (safer for bitwise operations) --- lctype.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lctype.h') diff --git a/lctype.h b/lctype.h index 24a19ae7..0b96bff4 100644 --- a/lctype.h +++ b/lctype.h @@ -1,5 +1,5 @@ /* -** $Id: lctype.h,v 1.5 2009/03/26 18:53:52 roberto Exp roberto $ +** $Id: lctype.h,v 1.6 2009/05/18 17:15:14 roberto Exp roberto $ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ @@ -12,6 +12,8 @@ #include "lua.h" +#include "llimits.h" + #define ALPHABIT 0 #define DIGITBIT 1 @@ -42,7 +44,7 @@ /* one more entry for 0 and one more for -1 (EOZ) */ -LUAI_DATA const char luai_ctype_[UCHAR_MAX + 2]; +LUAI_DATA const lu_byte luai_ctype_[UCHAR_MAX + 2]; #endif -- cgit v1.2.3-55-g6feb