diff options
| -rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.246 2012/09/24 22:57:26 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.247 2012/10/19 15:55:01 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -599,7 +599,7 @@ static int skipBOM (LoadF *lf) { | |||
| 599 | lf->n = 0; | 599 | lf->n = 0; |
| 600 | do { | 600 | do { |
| 601 | c = getc(lf->f); | 601 | c = getc(lf->f); |
| 602 | if (c == EOF || c != *(unsigned char *)p++) return c; | 602 | if (c == EOF || c != *(const unsigned char *)p++) return c; |
| 603 | lf->buff[lf->n++] = c; /* to be read by the parser */ | 603 | lf->buff[lf->n++] = c; /* to be read by the parser */ |
| 604 | } while (*p != '\0'); | 604 | } while (*p != '\0'); |
| 605 | lf->n = 0; /* prefix matched; discard it */ | 605 | lf->n = 0; /* prefix matched; discard it */ |
