From: Mikko Rasa Date: Thu, 11 Nov 2021 11:41:22 +0000 (+0200) Subject: Don't check the address of an inline array X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0c52167231a1312d2771afbc126c5b61e7d08d0f;p=libs%2Fgl.git Don't check the address of an inline array It always evaluates as true, not that it matters greatly in this case. --- 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); }