* c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.

From-SVN: r240185
This commit is contained in:
Marek Polacek 2016-09-16 10:18:06 +00:00 committed by Marek Polacek
parent 4561967700
commit 5b73d2ab55
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2016-09-16 Marek Polacek <polacek@redhat.com>
* c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
2016-09-14 Marek Polacek <polacek@redhat.com> 2016-09-14 Marek Polacek <polacek@redhat.com>
* c-array-notation.c (create_cmp_incr): Use false instead of 0. * c-array-notation.c (create_cmp_incr): Use false instead of 0.

View File

@ -4631,7 +4631,7 @@ lvalue_p (const_tree ref)
case COMPOUND_LITERAL_EXPR: case COMPOUND_LITERAL_EXPR:
case STRING_CST: case STRING_CST:
return 1; return true;
case INDIRECT_REF: case INDIRECT_REF:
case ARRAY_REF: case ARRAY_REF:
@ -4647,7 +4647,7 @@ lvalue_p (const_tree ref)
return TREE_CODE (TREE_TYPE (ref)) == ARRAY_TYPE; return TREE_CODE (TREE_TYPE (ref)) == ARRAY_TYPE;
default: default:
return 0; return false;
} }
} }