summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 184e86c..9f3d461 100644
--- a/eval.c
+++ b/eval.c
@@ -692,9 +692,9 @@ static Value *ident_val(Identifier i) {
else
return &decl->val;
}
- } else if (decl->flags & DECL_IS_CONST)
+ } else if (decl->flags & DECL_IS_CONST) {
return decl_val_at_index(decl, idx);
- else if (decl->val_stack) {
+ } else if (decl->val_stack) {
Value *valp = *(Value **)arr_last(decl->val_stack);
if (arr_len(decl->idents) > 1)
return &valp->tuple[idx];