diff mbox

[committed] Use true/false instead of 1/0 in lvalue_p

Message ID 20160916101544.GC19950@redhat.com
State New
Headers show

Commit Message

Marek Polacek Sept. 16, 2016, 10:15 a.m. UTC
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.


	Marek
diff mbox

Patch

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;
     }
 }