diff options
| author | 2022-03-21 19:41:06 -0500 | |
|---|---|---|
| committer | 2022-03-21 19:41:06 -0500 | |
| commit | d77be466445bc682002023236523f8a01b4627bc (patch) | |
| tree | a213ec2364c10c48ad754bb77fb78240bb1e5ed5 | |
| parent | Auto update copyright date. (diff) | |
Fix master - check last change with stackn
| -rw-r--r-- | src/core/run.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/run.c b/src/core/run.c index 5022914d..5b3efc14 100644 --- a/src/core/run.c +++ b/src/core/run.c @@ -23,6 +23,7 @@ #ifndef JANET_AMALG #include "features.h" #include <janet.h> +#include "state.h" #endif /* Run a string */ @@ -102,7 +103,7 @@ int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char if (where) janet_gcunroot(janet_wrap_string(where)); #ifdef JANET_EV /* Enter the event loop if we are not already in it */ - if (janet_vm.stack_n == 0) { + if (janet_vm.stackn == 0) { janet_gcroot(ret); janet_loop(); janet_gcunroot(ret); |
