From 0c52167231a1312d2771afbc126c5b61e7d08d0f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 11 Nov 2021 13:41:22 +0200 Subject: [PATCH] Don't check the address of an inline array It always evaluates as true, not that it matters greatly in this case. --- source/glsl/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index c2c54f9f..6b761674 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -200,7 +200,7 @@ void Formatter::visit(TernaryExpression &ternary) visit_expression(*ternary.condition, ternary.oper, false); append(ternary.oper->token); visit_expression(*ternary.true_expr, ternary.oper, false); - if(ternary.oper->token2) + if(ternary.oper->token2[0]) append(ternary.oper->token2); visit_expression(*ternary.false_expr, ternary.oper, true); } -- 2.43.0