From b1e1c15ced1f02becf578efb12dbeea6a9f01eee Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 26 Mar 2009 15:53:52 -0300 Subject: small bug: EOZ is a valid character to be tested --- lctype.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lctype.c') diff --git a/lctype.c b/lctype.c index 3cd79885..b210b5eb 100644 --- a/lctype.c +++ b/lctype.c @@ -1,5 +1,5 @@ /* -** $Id: lctype.c,v 1.3 2009/03/10 17:42:33 roberto Exp roberto $ +** $Id: lctype.c,v 1.4 2009/03/11 13:27:32 roberto Exp roberto $ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ @@ -8,7 +8,8 @@ #include "lctype.h" -const char luai_ctype_[UCHAR_MAX + 1] = { +const char luai_ctype_[UCHAR_MAX + 2] = { + 0x00, /* EOZ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -- cgit v1.2.3-55-g6feb