diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-06-22 17:57:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 17:57:02 +0200 |
| commit | dae9a8dfff04040490e08fdc7a5840ea58910708 (patch) | |
| tree | cfeb65f3b83d09b476086426bc4f58aabb6acf9b | |
| parent | 13c58948f48dba742585a182e5c7375f547df123 (diff) | |
| parent | f58eded5d260917a1e86140b10be94f6f2266a21 (diff) | |
Merge pull request #3796 from Feoramund/fix-lack-of-str-arg-or-cont
Fix print segfault by missing argument in `or_*` shadowed error
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index cddcc05f2..27e750668 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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); } } |