mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
AST dump: fixed printing of conditionals.
ast_expression::print() had an incorrect index into the subexpressions array, so (a ? b : c) was being incorrectly rendered as (a ? b : b). Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
4077336fc7
commit
26b566e19c
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ ast_expression::print(void) const
|
|||
printf("? ");
|
||||
subexpressions[1]->print();
|
||||
printf(": ");
|
||||
subexpressions[1]->print();
|
||||
subexpressions[2]->print();
|
||||
break;
|
||||
|
||||
case ast_array_index:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue