summaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lundump.c b/lundump.c
index e9d445e6..ddf55239 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 2.33 2014/03/11 18:05:46 roberto Exp roberto $ 2** $Id: lundump.c,v 2.34 2014/03/11 18:56:27 roberto Exp roberto $
3** load precompiled Lua chunks 3** load precompiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -42,7 +42,7 @@ static l_noret error(LoadState *S, const char *why) {
42 42
43/* 43/*
44** All high-level loads go through LoadVector; you can change it to 44** All high-level loads go through LoadVector; you can change it to
45** adapt to the endianess of the input 45** adapt to the endianness of the input
46*/ 46*/
47#define LoadVector(S,b,n) LoadBlock(S,b,(n)*sizeof((b)[0])) 47#define LoadVector(S,b,n) LoadBlock(S,b,(n)*sizeof((b)[0]))
48 48
@@ -231,7 +231,7 @@ static void checkHeader (LoadState *S) {
231 checksize(S, lua_Integer); 231 checksize(S, lua_Integer);
232 checksize(S, lua_Number); 232 checksize(S, lua_Number);
233 if (LoadInteger(S) != LUAC_INT) 233 if (LoadInteger(S) != LUAC_INT)
234 error(S, "endianess mismatch in"); 234 error(S, "endianness mismatch in");
235 if (LoadNumber(S) != LUAC_NUM) 235 if (LoadNumber(S) != LUAC_NUM)
236 error(S, "float format mismatch in"); 236 error(S, "float format mismatch in");
237} 237}