diff options
| author | Lua Team <team@lua.org> | 2013-03-21 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2013-03-21 12:00:00 +0000 |
| commit | dc27609467d2699ac9252e89d632432ac5f798f2 (patch) | |
| tree | b934d79a77a76df417078dc6ac162bb0012708bb /src/lauxlib.c | |
| parent | a101faf3e9db5b8b47cb0bcfb973b13d46ca304a (diff) | |
| download | lua-github-5.2.2.tar.gz | |
Diffstat (limited to 'src/lauxlib.c')
| -rw-r--r-- | src/lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lauxlib.c b/src/lauxlib.c index 42521bce..2e989d66 100644 --- a/src/lauxlib.c +++ b/src/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.247 2012/10/19 15:55:01 roberto Exp $ +** $Id: lauxlib.c,v 1.248 2013/03/21 13:54:57 roberto Exp $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -599,7 +599,7 @@ static int skipBOM (LoadF *lf) { 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 */ |
