summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-07-30 18:20:36 +0100
committerReuben Thomas <rrt@sc3d.org>2010-07-30 18:20:36 +0100
commit8dfd794540c01ea61b9bd43f7da363d8b1503e7b (patch)
treea9ae3dcb5e4173f83a38b7c8a76d23e32f02e0cb
parent3ffd7f8214ec3c73b9fdaa43c815ab29cc5a94e3 (diff)
downloadlrexlib-8dfd794540c01ea61b9bd43f7da363d8b1503e7b.tar.gz
Tweak for clarity.
-rwxr-xr-xsrc/gnu/lgnu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnu/lgnu.c b/src/gnu/lgnu.c
index fa1f9c9..580a3c7 100755
--- a/src/gnu/lgnu.c
+++ b/src/gnu/lgnu.c
@@ -105,7 +105,7 @@ static void opttranslate (TArgComp *argC, lua_State *L, int pos) {
argC->translate = (const unsigned char *) Lmalloc (L, ALG_TRANSLATE_SIZE);
memset ((unsigned char *) argC->translate, 0, ALG_TRANSLATE_SIZE); /* initialize all members to 0 */
- for (i = 0; i < ALG_TRANSLATE_SIZE; i++) {
+ for (i = 0; i <= UCHAR_MAX; i++) {
lua_pushinteger (L, i);
lua_gettable (L, pos);
if (lua_tostring (L, -1))