Merge pull request 'Fix creating invalid bytecode' (#104) from issue/99 into master

Reviewed-on: #104
This commit is contained in:
Lucas Schwiderski 2023-04-06 12:23:55 +02:00
commit f1d6912a90
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 11c4eddaa4667ea7fffad40b034cf3fcb19fbdd3
Subproject commit 7395cf0d5360e78e511825b4b5a82b3cc50b4905

View file

@ -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,