diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-03-21 10:54:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-03-21 10:54:57 -0300 |
commit | af8efcc7621397f26dc481aa481c2406a5b65057 (patch) | |
tree | 4b3e0d9f7739a5f23c62498129c26dae20e202db | |
parent | 3f6f78ea0b09f2dc558576926b74cb8f4bb7eb8b (diff) | |
download | lua-af8efcc7621397f26dc481aa481c2406a5b65057.tar.gz lua-af8efcc7621397f26dc481aa481c2406a5b65057.tar.bz2 lua-af8efcc7621397f26dc481aa481c2406a5b65057.zip |
detail (avoid unnecessary "unconst" in cast)
-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 */ |