From 7fa0e5ff57e140bb405b2141ec52f48d8e2e7a36 Mon Sep 17 00:00:00 2001 From: MineBill Date: Thu, 4 Apr 2024 19:36:16 +0300 Subject: [PATCH] pushboolean should take a c.int which is 4 bytes. c.bool is an alias to odin bool which is 1 byte. --- shared/lua/functions.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/lua/functions.odin b/shared/lua/functions.odin index bdf25a3..9895b4b 100644 --- a/shared/lua/functions.odin +++ b/shared/lua/functions.odin @@ -53,7 +53,7 @@ foreign liblua { newthread :: proc (L: ^State ) -> ^State --- newuserdatauv :: proc (L: ^State, sz: c.ptrdiff_t, nuvalue: c.int) -> rawptr --- next :: proc (L: ^State , idx: c.int) -> c.int --- - pushboolean :: proc (L: ^State , b: c.bool ) --- + pushboolean :: proc (L: ^State , b: c.int ) --- pushcclosure :: proc (L: ^State , fn: CFunction, n:c.int) --- pushinteger :: proc (L: ^State , n: Integer ) --- pushlightuserdata :: proc (L: ^State , p: rawptr) ---