Fix creating invalid bytecode #104
2 changed files with 2 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 11c4eddaa4667ea7fffad40b034cf3fcb19fbdd3
|
||||
Subproject commit 7395cf0d5360e78e511825b4b5a82b3cc50b4905
|
|
@ -34,7 +34,7 @@ where
|
|||
let state = lua::luaL_newstate();
|
||||
lua::luaL_openlibs(state);
|
||||
|
||||
let name = CString::new(name.as_bytes())
|
||||
let name = CString::new(format!("@{name}").into_bytes())
|
||||
.wrap_err_with(|| format!("Cannot convert name into CString: {}", name))?;
|
||||
match lua::luaL_loadbuffer(
|
||||
state,
|
||||
|
|
Loading…
Add table
Reference in a new issue