readability-implicit-bool-conversion 1/2
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / gmxcpp.cpp
index 5e9c584807762a5be48fad792c9c87b40c5c1279..3ce10af03452aa33e6ba2c5cf8289a6ca58633fc 100644 (file)
@@ -365,11 +365,11 @@ process_directive(gmx_cpp_t *handlep, const char *dname, const char *dval)
     unsigned int i1;
     char        *inc_fn, *name;
     const char  *ptr;
-    int          bIfdef, bIfndef;
+    bool         bIfdef, bIfndef;
 
     /* #ifdef or ifndef statement */
-    bIfdef  = (strcmp(dname, "ifdef") == 0);
-    bIfndef = (strcmp(dname, "ifndef") == 0);
+    bIfdef  = strcmp(dname, "ifdef") == 0;
+    bIfndef = strcmp(dname, "ifndef") == 0;
     if (bIfdef || bIfndef)
     {
         GMX_RELEASE_ASSERT(dval, "#ifdef/#ifndef requires an argument");