mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #3796 from Feoramund/fix-lack-of-str-arg-or-cont
Fix print segfault by missing argument in `or_*` shadowed error
This commit is contained in:
+1
-1
@@ -8727,7 +8727,7 @@ gb_internal ExprKind check_or_branch_expr(CheckerContext *c, Operand *o, Ast *no
|
|||||||
// okay
|
// okay
|
||||||
} else {
|
} else {
|
||||||
gbString s = type_to_string(right_type);
|
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);
|
gb_string_free(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user