summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-08-04 18:20:32 +0100
committerubq323 <ubq323@ubq323.website>2023-08-04 18:20:32 +0100
commit7c9790d7726e0bb3f44bec15eff7631080d45b03 (patch)
tree779e9c18a7482fd707f46a3b25008b6d8a05c393 /vm.c
parentd8b50976ce7fd4a44ba9172d69e8ae4ca6cab596 (diff)
valty_str -> typename_str
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index f7887d3..c420774 100644
--- a/vm.c
+++ b/vm.c
@@ -112,7 +112,7 @@ void runvm(Chunk *ch) {
Val a = POP(); \
if (!IS_NUM(a) || !IS_NUM(b)) { \
printf("can't do arithmetic on %s and %s\n", \
- valty_str(a), valty_str(b)); \
+ typename_str(a), typename_str(b)); \
goto done; \
} \
PUSH(VAL_NUM(AS_NUM(a) OP AS_NUM(b))); \