]> gitweb.factorcode.org Git - factor.git/commitdiff
Add parentheses to prevent GCC warning
authorSamuel Tardieu <sam@rfc1149.net>
Sun, 8 Nov 2009 01:01:48 +0000 (02:01 +0100)
committerSamuel Tardieu <sam@rfc1149.net>
Sun, 8 Nov 2009 01:01:48 +0000 (02:01 +0100)
vm/free_list.hpp
vm/layouts.hpp

index ad880b92d03640362edf8b8aae391e85a92a0504..2f03b531fd46e1dca7e1eec523ab840dd8b08bd3 100644 (file)
@@ -9,7 +9,7 @@ struct free_heap_block
 
        bool free_p() const
        {
-               return header & 1 == 1;
+               return (header & 1) == 1;
        }
 
        cell size() const
index ff7ccbf3c079ca5024d7c950823b7e600baa9cad..831cc387d242d70822bd83512602dd40e4cbd1a4 100644 (file)
@@ -147,7 +147,7 @@ struct object {
        to do anything with it if its free */
        bool free_p() const
        {
-               return h.value & 1 == 1;
+               return (h.value & 1) == 1;
        }
 };
 
@@ -221,7 +221,7 @@ struct code_block
 
        bool free_p() const
        {
-               return header & 1 == 1;
+               return (header & 1) == 1;
        }
 
        code_block_type type() const