small bug: EOZ is a valid character to be tested

This commit is contained in:
Roberto Ierusalimschy
2009-03-26 15:53:52 -03:00
parent 3dbf305408
commit b1e1c15ced
2 changed files with 21 additions and 12 deletions

View File

@@ -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,