aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Andrew D. France 2025-07-22 23:30:27 -0500
committerGravatar Andrew D. France 2025-07-22 23:30:27 -0500
commit8f1b0212b219aa97116923876adfab5b90f5986a (patch)
tree371c08a13a2c49fbd39d301491073167fb2a4d5c
parentCompat53 library uses the floor function, which is part of the C math library... (diff)
src/lush.c ln:1500-1508: corrected the 'luaL' typos
-rw-r--r--src/lush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lush.c b/src/lush.c
index 88d2998..82c272e 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -1492,12 +1492,12 @@ int main(int argc, char *argv[]) {
// init lua state
lua_State *L = luaL_newstate();
- luaL_openlibs(L);
+ lua_openlibs(L);
// --- Pre-load compat modules ---
// This is to make C modules available to Lua
- luaL_getglobal(L, "package");
- luaL_getfield(L, -1, "preload");
+ lua_getglobal(L, "package");
+ lua_getfield(L, -1, "preload");
// Preload bit32 for Lua 5.1 compatibility
lua_pushcfunction(L, luaopen_bit32);