ir_reader: Fix incorrect error message for expressions.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Apr 2010 06:46:22 +0000 (23:46 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Apr 2010 01:14:54 +0000 (18:14 -0700)
ir_reader.cpp

index 74fe5faaf6726ff5d915268cf10bfbc9b3c0de0a..dc1c84fcac15fb320615766d9a1029acfa60db10 100644 (file)
@@ -600,13 +600,13 @@ read_expression(_mesa_glsl_parse_state *st, s_list *list)
    /* Now that we know the operator, check for the right number of operands */ 
    if (ir_expression::get_num_operands(op) == 2) {
       if (list_length != 5) {
-        ir_read_error(st, list, "expected (expression %s <operand> <operand>)",
-                      op_sym->value());
+        ir_read_error(st, list, "expected (expression <type> %s <operand> "
+                                " <operand>)", op_sym->value());
         return NULL;
       }
    } else {
       if (list_length != 4) {
-        ir_read_error(st, list, "expected (expression %s <operand>)",
+        ir_read_error(st, list, "expected (expression <type> %s <operand>)",
                       op_sym->value());
         return NULL;
       }