diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 46c296992b5..4c2fc5dda65 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,7 @@ +2016-09-16 Marek Polacek + + * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0. + 2016-09-14 Marek Polacek * c-array-notation.c (create_cmp_incr): Use false instead of 0. diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index 4dec397225e..059ad1fc2e0 100644 --- a/gcc/c/c-typeck.c +++ b/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; } }