* c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
authorMarek Polacek <polacek@redhat.com>
Fri, 16 Sep 2016 10:18:06 +0000 (10:18 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 16 Sep 2016 10:18:06 +0000 (10:18 +0000)
From-SVN: r240185

gcc/c/ChangeLog
gcc/c/c-typeck.c

index 46c296992b57627f262553f7a0c8b275657c1b10..4c2fc5dda655e1a5dce4f044c8e7f85ed13280e6 100644 (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>
 
        * c-array-notation.c (create_cmp_incr): Use false instead of 0.
index 4dec397225ebace44c5cbfcf3260366af3deb5cd..059ad1fc2e021c632164dcf091b1252566d1f5ca 100644 (file)
@@ -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;
     }
 }
 \f