diff options
Diffstat (limited to 'Build/source/libs/lua52/lua-5.2.1-PATCHES/patch-01-const')
-rw-r--r-- | Build/source/libs/lua52/lua-5.2.1-PATCHES/patch-01-const | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Build/source/libs/lua52/lua-5.2.1-PATCHES/patch-01-const b/Build/source/libs/lua52/lua-5.2.1-PATCHES/patch-01-const new file mode 100644 index 00000000000..668ab023c5d --- /dev/null +++ b/Build/source/libs/lua52/lua-5.2.1-PATCHES/patch-01-const @@ -0,0 +1,12 @@ +diff -ur lua-5.2.1.orig/src/lauxlib.c lua-5.2.1/src/lauxlib.c +--- lua-5.2.1.orig/src/lauxlib.c 2012-05-31 22:28:45.000000000 +0200 ++++ lua-5.2.1/src/lauxlib.c 2013-06-18 09:58:17.000000000 +0200 +@@ -598,7 +598,7 @@ + lf->n = 0; + do { + c = getc(lf->f); +- if (c == EOF || c != *(unsigned char *)p++) return c; ++ if (c == EOF || c != *(const unsigned char *)p++) return c; + lf->buff[lf->n++] = c; /* to be read by the parser */ + } while (*p != '\0'); + lf->n = 0; /* prefix matched; discard it */ |