Skip to content

Commit 3f3be8d

Browse files
committed
fix: bad return type for lua_tostring
1 parent 7b4a036 commit 3f3be8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binding-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const luaBindings: Record<string, luaBindingFactoryFunc> = {
5252
lua_tolstring: function(_L: LuaState, _index: number, _size: number) {
5353
throw "lua_tolstring is currently not supported in 5.0";
5454
},
55-
lua_tostring: luaGlue.cwrap("lua_tostring", "number", ["number", "number"])
55+
lua_tostring: luaGlue.cwrap("lua_tostring", "string", ["number", "number"])
5656
};
5757
},
5858
"5.1.x": function(_luaGlue: LuaEmscriptenModule){

0 commit comments

Comments
 (0)