Skip to content

Commit d77be46

Browse files
committed
Fix master - check last change with stackn
1 parent 3715d7a commit d77be46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/run.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#ifndef JANET_AMALG
2424
#include "features.h"
2525
#include <janet.h>
26+
#include "state.h"
2627
#endif
2728

2829
/* Run a string */
@@ -102,7 +103,7 @@ int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char
102103
if (where) janet_gcunroot(janet_wrap_string(where));
103104
#ifdef JANET_EV
104105
/* Enter the event loop if we are not already in it */
105-
if (janet_vm.stack_n == 0) {
106+
if (janet_vm.stackn == 0) {
106107
janet_gcroot(ret);
107108
janet_loop();
108109
janet_gcunroot(ret);

0 commit comments

Comments
 (0)