[committed] Use true/false instead of 1/0 in lvalue_p
Marek Polacek
polacek@redhat.com
Fri Sep 16 10:25:00 GMT 2016
lvalue_p returns bool but was using 0/1 as return values.
Bootstrapped/regtested on x86_64-linux, applying to trunk.
2016-09-16 Marek Polacek <polacek@redhat.com>
* c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
diff --git gcc/c/c-typeck.c gcc/c/c-typeck.c
index 4dec397..059ad1f 100644
--- gcc/c/c-typeck.c
+++ gcc/c/c-typeck.c
@@ -4631,7 +4631,7 @@ lvalue_p (const_tree ref)
case COMPOUND_LITERAL_EXPR:
case STRING_CST:
- return 1;
+ return true;
case INDIRECT_REF:
case ARRAY_REF:
@@ -4647,7 +4647,7 @@ lvalue_p (const_tree ref)
return TREE_CODE (TREE_TYPE (ref)) == ARRAY_TYPE;
default:
- return 0;
+ return false;
}
}
Marek
More information about the Gcc-patches
mailing list