From 351e795a52f8bc2f2c581234bebbfa7c811ed082 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 8 Nov 2009 02:01:48 +0100 Subject: [PATCH] Add parentheses to prevent GCC warning --- vm/free_list.hpp | 2 +- vm/layouts.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vm/free_list.hpp b/vm/free_list.hpp index ad880b92d0..2f03b531fd 100644 --- a/vm/free_list.hpp +++ b/vm/free_list.hpp @@ -9,7 +9,7 @@ struct free_heap_block bool free_p() const { - return header & 1 == 1; + return (header & 1) == 1; } cell size() const diff --git a/vm/layouts.hpp b/vm/layouts.hpp index ff7ccbf3c0..831cc387d2 100644 --- a/vm/layouts.hpp +++ b/vm/layouts.hpp @@ -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