aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2022-03-21 19:41:06 -0500
committerCalvin Rose <calsrose@gmail.com>2022-03-21 19:41:06 -0500
commitd77be466445bc682002023236523f8a01b4627bc (patch)
treea213ec2364c10c48ad754bb77fb78240bb1e5ed5
parentAuto update copyright date. (diff)
Fix master - check last change with stackn
-rw-r--r--src/core/run.c3
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);