From b18558b7035f060fca84c53d61b03855bd506539 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 17 Aug 2015 10:29:48 -0400 Subject: [PATCH] osd/OSDMap: test_flag returns bool Otherwise comparing the result to a bool will promote the bool to an int and fail the comparison. Signed-off-by: Sage Weil --- src/osd/OSDMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index 3e75995da10e..e1d140adf0e3 100644 --- a/src/osd/OSDMap.h +++ b/src/osd/OSDMap.h @@ -341,7 +341,7 @@ public: } int get_flags() const { return flags; } - int test_flag(int f) const { return flags & f; } + bool test_flag(int f) const { return flags & f; } void set_flag(int f) { flags |= f; } void clear_flag(int f) { flags &= ~f; } -- 2.47.3