Skip to content

Commit 075190c

Browse files
committed
Use upstream Lua fix.
1 parent 5665258 commit 075190c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/lua/src/lundump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static void fchecksize (LoadState *S, size_t size, const char *tname) {
234234
#define checksize(S,t) fchecksize(S,sizeof(t),#t)
235235

236236
static void checkHeader (LoadState *S) {
237-
checkliteral(S, (const char*)LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
237+
checkliteral(S, &LUA_SIGNATURE[1], "not a"); /* 1st char already checked */
238238
if (LoadByte(S) != LUAC_VERSION)
239239
error(S, "version mismatch in");
240240
if (LoadByte(S) != LUAC_FORMAT)

0 commit comments

Comments
 (0)