We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00328b0 commit 459edb6Copy full SHA for 459edb6
src/state/extra.rs
@@ -270,7 +270,7 @@ impl ExtraData {
270
// Try to grow max stack size
271
if self.ref_stack_top >= self.ref_stack_size {
272
let mut inc = self.ref_stack_size; // Try to double stack size
273
- while inc > 0 && ffi::lua_checkstack(self.ref_thread, inc) == 0 {
+ while inc > 0 && ffi::lua_checkstack(self.ref_thread, inc + REF_STACK_RESERVE) == 0 {
274
inc /= 2;
275
}
276
if inc == 0 {
0 commit comments