From 2f3467a4eaeea16afe3119ab6f6628ed1a7f941a Mon Sep 17 00:00:00 2001 From: JINMEI Tatuya Date: Thu, 6 Dec 2012 19:31:40 -0800 Subject: [PATCH] [2377] style fix: don't use result of x&y as a boolean directly --- src/lib/dns/master_loader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dns/master_loader.cc b/src/lib/dns/master_loader.cc index 60a97d6c04..3bda359b66 100644 --- a/src/lib/dns/master_loader.cc +++ b/src/lib/dns/master_loader.cc @@ -119,7 +119,7 @@ public: // Good, we loaded another one ++count; - } else if (!(options_ & MANY_ERRORS)) { + } else if ((options_ & MANY_ERRORS) == 0) { return (true); } } catch (const isc::Exception& e) { @@ -127,7 +127,7 @@ public: callbacks_.error(lexer_.getSourceName(), lexer_.getSourceLine(), e.what()); - if (options_ & MANY_ERRORS) { + if ((options_ & MANY_ERRORS) != 0) { // We want to continue. Try to read until the end of line bool end = false; do {