Fix print segfault by missing argument in or_* shadowed error

This commit is contained in:
Feoramund
2024-06-22 11:45:43 -04:00
parent 13c58948f4
commit f58eded5d2

View File

@@ -8727,7 +8727,7 @@ gb_internal ExprKind check_or_branch_expr(CheckerContext *c, Operand *o, Ast *no
// okay
} else {
gbString s = type_to_string(right_type);
error(node, "'%.*s' requires a boolean or nil-able type, got %s", s);
error(node, "'%.*s' requires a boolean or nil-able type, got %s", LIT(name), s);
gb_string_free(s);
}
}