Browse Source

[2377] style fix: don't use result of x&y as a boolean directly

JINMEI Tatuya 12 years ago
parent
commit
2f3467a4ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/master_loader.cc

+ 2 - 2
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 {