diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-26 15:53:52 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-26 15:53:52 -0300 |
commit | b1e1c15ced1f02becf578efb12dbeea6a9f01eee (patch) | |
tree | 0cbdb7f2b92ed4391d60613d578ca49de3137afd /lctype.c | |
parent | 3dbf30540892b4b9c86e0cb663069cd478a0c900 (diff) | |
download | lua-b1e1c15ced1f02becf578efb12dbeea6a9f01eee.tar.gz lua-b1e1c15ced1f02becf578efb12dbeea6a9f01eee.tar.bz2 lua-b1e1c15ced1f02becf578efb12dbeea6a9f01eee.zip |
small bug: EOZ is a valid character to be tested
Diffstat (limited to 'lctype.c')
-rw-r--r-- | lctype.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lctype.c,v 1.3 2009/03/10 17:42:33 roberto Exp roberto $ | 2 | ** $Id: lctype.c,v 1.4 2009/03/11 13:27:32 roberto Exp roberto $ |
3 | ** 'ctype' functions for Lua | 3 | ** 'ctype' functions for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -8,7 +8,8 @@ | |||
8 | 8 | ||
9 | #include "lctype.h" | 9 | #include "lctype.h" |
10 | 10 | ||
11 | const char luai_ctype_[UCHAR_MAX + 1] = { | 11 | const char luai_ctype_[UCHAR_MAX + 2] = { |
12 | 0x00, /* EOZ */ | ||
12 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 13 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
13 | 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, | 14 | 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, |
14 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 15 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |