Fixed incorrect format strings when using error_exit. (#2530)

* Fixed incorrect format strings when using `error_exit`.
This commit is contained in:
Giuliano Macedo
2025-10-20 06:24:07 -03:00
committed by GitHub
parent 03ad72afbb
commit 614c6989d8
7 changed files with 31 additions and 13 deletions

View File

@@ -2493,7 +2493,7 @@ static void llvm_emit_unary_expr(GenContext *c, BEValue *value, Expr *expr)
switch (expr->unary_expr.operator)
{
case UNARYOP_ERROR:
FATAL_ERROR("Illegal unary op %s", expr->unary_expr.operator);
FATAL_ERROR("Illegal unary op %d", expr->unary_expr.operator);
case UNARYOP_PLUS:
// Folded
UNREACHABLE_VOID