From af8efcc7621397f26dc481aa481c2406a5b65057 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 21 Mar 2013 10:54:57 -0300 Subject: detail (avoid unnecessary "unconst" in cast) --- lauxlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lauxlib.c b/lauxlib.c index 5f746bee..286e0430 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.246 2012/09/24 22:57:26 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.247 2012/10/19 15:55:01 roberto Exp roberto $ ** 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 */ -- cgit v1.2.3-55-g6feb