diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-09-02 19:58:44 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-09-02 19:58:44 +0200 |
commit | 65667e7cc2f741afdfcfaad40f57d8cab5254633 (patch) | |
tree | 92244ff2510d213662fa5c4845392bba1deddd5a /include/modules | |
parent | f673caf8a89c4d9b8b631e46d20c71118a29eb9c (diff) |
Fix Windows build and most MSVC warnings
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/cap.h | 2 |
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. |