aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/corewords.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-03-18 12:40:46 -0400
committerClyne Sullivan <clyne@bitgloo.com>2023-03-18 12:40:46 -0400
commitd36bb13f52b3899fd0f57e38f00d97e2c3a0f627 (patch)
treee1a2780f42bf82c6fcbbd9c2219d55dbc8f03c53 /libalee/corewords.hpp
parent74753670d582e4ceeaba383e4ce360eb13004a35 (diff)
-Wconversion
Diffstat (limited to 'libalee/corewords.hpp')
-rw-r--r--libalee/corewords.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libalee/corewords.hpp b/libalee/corewords.hpp
index 993a420..d4d7ef2 100644
--- a/libalee/corewords.hpp
+++ b/libalee/corewords.hpp
@@ -31,20 +31,20 @@ void user_sys(State&);
class CoreWords
{
public:
- constexpr static std::size_t WordCount = 37;
- constexpr static int Semicolon = 26;
+ constexpr static Cell WordCount = 37;
+ constexpr static Cell Semicolon = 26;
/**
* Finds execution token that corresponds to the given word.
* Returns -1 if not found.
*/
- static int findi(const char *);
- static int findi(State&, Word);
+ static Cell findi(const char *);
+ static Cell findi(State&, Word);
/**
* Executes the given CoreWord execution token using the given state.
*/
- static void run(unsigned int, State&);
+ static void run(Cell, State&);
constexpr static char wordsarr[] =
"_lit\0drop\0dup\0swap\0pick\0sys\0"