Fix -Wduplicated-cond warnings
[babeltrace.git] / src / plugins / ctf / common / metadata / parser.y
index b270a83c5001b89d5b4398398420a55587eed259..16868179282c18b66da6a110becc880336d3cc68 100644 (file)
@@ -1310,7 +1310,7 @@ unary_expression:
                                $$->u.unary_expression.type = UNARY_SIGNED_CONSTANT;
                                $$->u.unary_expression.u.signed_constant =
                                        -($$->u.unary_expression.u.unsigned_constant);
-                       } else if ($$->u.unary_expression.type == UNARY_UNSIGNED_CONSTANT) {
+                       } else if ($$->u.unary_expression.type == UNARY_SIGNED_CONSTANT) {
                                $$->u.unary_expression.u.signed_constant =
                                        -($$->u.unary_expression.u.signed_constant);
                        } else {
This page took 0.023643 seconds and 4 git commands to generate.