Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d66473ae
Commit
d66473ae
authored
Aug 30, 2021
by
Johny Mattsson
Browse files
Fix broken LFS loading in Lua 5.3.
Do not [lua_]assert() on things which have a side effect...
parent
185855b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/lua/lua-5.3/lundump.c
View file @
d66473ae
...
@@ -579,9 +579,10 @@ static void LoadAllProtos (LoadState *S) {
...
@@ -579,9 +579,10 @@ static void LoadAllProtos (LoadState *S) {
S
->
pv
[
i
]
=
LoadFunction
(
S
,
luaF_newproto
(
L
),
NULL
);
S
->
pv
[
i
]
=
LoadFunction
(
S
,
luaF_newproto
(
L
),
NULL
);
}
}
/* generate the ROTable entries from first N constants; the last is a timestamp */
/* generate the ROTable entries from first N constants; the last is a timestamp */
lua_assert
(
n
+
1
==
LoadInt
(
S
));
int
nk
=
LoadInt
(
S
);
lua_assert
(
n
+
1
==
nk
);
ROTable_entry
*
entry_list
=
cast
(
ROTable_entry
*
,
StoreGetPos
(
S
));
ROTable_entry
*
entry_list
=
cast
(
ROTable_entry
*
,
StoreGetPos
(
S
));
for
(
i
=
0
;
i
<
n
;
i
++
)
{
for
(
i
=
0
;
i
<
n
k
-
1
;
i
++
)
{
// -1 to ignore timestamp
lu_byte
tt_data
=
LoadByte
(
S
);
lu_byte
tt_data
=
LoadByte
(
S
);
TString
*
Tname
=
LoadString2
(
S
,
tt_data
);
TString
*
Tname
=
LoadString2
(
S
,
tt_data
);
const
char
*
name
=
getstr
(
Tname
)
+
OFFSET_TSTRING
;
const
char
*
name
=
getstr
(
Tname
)
+
OFFSET_TSTRING
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment