$OpenBSD: patch-lpeg_c,v 1.4 2011/06/21 06:09:34 jasper Exp $
--- lpeg.c.orig	Wed Feb 16 16:03:25 2011
+++ lpeg.c	Mon Jun 20 23:41:43 2011
@@ -2268,7 +2268,7 @@ static int type_l (lua_State *L) {
 static void createcat (lua_State *L, const char *catname, int (catf) (int)) {
   Instruction *p = newcharset(L);
   int i;
-  for (i = 0; i < CHAR_MAX; i++)
+  for (i = 0; i <= UCHAR_MAX; i++)
     if (catf(i)) setchar(p[1].buff, i);
   lua_setfield(L, -2, catname);
 }
