summaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index efb91ee..4966893 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -868,7 +868,8 @@ AstTree *runExpression(AstTree *expr, bool *shouldRet) {
case AST_TREE_TOKEN_OPERATOR_DEREFERENCE: {
AstTreeSingleChild *metadata = expr->metadata;
AstTree *operand = runExpression(metadata, shouldRet);
- if (metadata->token != AST_TREE_TOKEN_VARIABLE) {
+ if (operand->token != AST_TREE_TOKEN_VARIABLE) {
+ printLog("%s", AST_TREE_TOKEN_STRINGS[operand->token]);
UNREACHABLE;
}
AstTreeVariable *variable = operand->metadata;