diff options
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -271,8 +271,8 @@ static void fchecksize (LoadState *S, size_t size, const char *tname) { | |||
271 | #define checksize(S,t) fchecksize(S,sizeof(t),#t) | 271 | #define checksize(S,t) fchecksize(S,sizeof(t),#t) |
272 | 272 | ||
273 | static void checkHeader (LoadState *S) { | 273 | static void checkHeader (LoadState *S) { |
274 | /* 1st char already checked */ | 274 | /* skip 1st char (already read and checked) */ |
275 | checkliteral(S, LUA_SIGNATURE + 1, "not a binary chunk"); | 275 | checkliteral(S, &LUA_SIGNATURE[1], "not a binary chunk"); |
276 | if (LoadInt(S) != LUAC_VERSION) | 276 | if (LoadInt(S) != LUAC_VERSION) |
277 | error(S, "version mismatch"); | 277 | error(S, "version mismatch"); |
278 | if (LoadByte(S) != LUAC_FORMAT) | 278 | if (LoadByte(S) != LUAC_FORMAT) |