aboutsummaryrefslogtreecommitdiffstats
path: root/corewords.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-02-20 19:28:46 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-02-20 19:28:46 -0500
commit5632b65540687ac89f154fde1acae023ecd894d2 (patch)
treeaee9db0a9d2f0d1b3a9ed603fb288279a79f3801 /corewords.cpp
parentbc118ad31f2d74b5d5e9e3742e52fc441722c679 (diff)
fix execution lookup; add unloop
Diffstat (limited to 'corewords.cpp')
-rw-r--r--corewords.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/corewords.cpp b/corewords.cpp
index de71f3e..3fc5f51 100644
--- a/corewords.cpp
+++ b/corewords.cpp
@@ -321,14 +321,9 @@ Func CoreWords::find(State& state, Word word)
return i >= 0 ? get(i & ~Compiletime) : nullptr;
}
-bool CoreWords::run(int i, State& state)
+void CoreWords::run(int i, State& state)
{
- i &= ~Compiletime;
-
- bool isaword = i >= 0 && i < WordCount;
- if (isaword)
+ if (i >= 0 && i < WordCount)
get(i)(state);
-
- return isaword;
}