aboutsummaryrefslogtreecommitdiffstats
path: root/parser.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-02-09 18:20:35 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-02-09 18:20:35 -0500
commit501ca28d509bf6f41ed5797fa68f07e37ab9a294 (patch)
tree4c100967b4393b95c81e644da8280e83aacf47ee /parser.cpp
parent5bc9e4d2add7d2185b2c57a18ebd15b31f5366bd (diff)
add more core.fth words
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.cpp b/parser.cpp
index d57365b..99cbc8b 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -77,7 +77,8 @@ ParseStatus Parser::parse(State& state, std::string_view& str)
}
} else {
char *p;
- const auto l = static_cast<Cell>(std::strtol(sub.data(), &p, 10));
+ const auto base = state.dict.read(0);
+ const auto l = static_cast<Cell>(std::strtol(sub.data(), &p, base));
if (p != sub.data()) {
if (state.compiling) {