summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-09-02 19:58:44 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-09-02 19:58:44 +0200
commit65667e7cc2f741afdfcfaad40f57d8cab5254633 (patch)
tree92244ff2510d213662fa5c4845392bba1deddd5a /include/modules
parentf673caf8a89c4d9b8b631e46d20c71118a29eb9c (diff)
Fix Windows build and most MSVC warnings
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/cap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h
index e6f9340e8..86a60c445 100644
--- a/include/modules/cap.h
+++ b/include/modules/cap.h
@@ -197,7 +197,7 @@ namespace Cap
if (!IsRegistered())
return false;
Ext caps = extitem->get(user);
- return (caps & GetMask());
+ return ((caps & GetMask()) != 0);
}
/** Turn the capability on/off for a user. If the cap is not registered this method has no effect.