Skip to content

Commit c2ef152

Browse files
committed
Increase default max_cstack_size to 1M
1 parent 37d543b commit c2ef152

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Build {
3030
out_dir: env::var_os("OUT_DIR").map(|s| PathBuf::from(s).join("luau-build")),
3131
target: env::var("TARGET").ok(),
3232
host: env::var("HOST").ok(),
33-
max_cstack_size: 100000,
33+
max_cstack_size: 1000000,
3434
use_longjmp: false,
3535
enable_codegen: false,
3636
vector_size: 3,

testcrate/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern "C" {
7070
}
7171

7272
pub unsafe fn lua_getglobal(state: *mut c_void, k: *const c_char) {
73-
lua_getfield(state, -102002 /* LUA_GLOBALSINDEX */, k);
73+
lua_getfield(state, -1002002 /* LUA_GLOBALSINDEX */, k);
7474
}
7575

7676
#[test]

0 commit comments

Comments
 (0)