From 65667e7cc2f741afdfcfaad40f57d8cab5254633 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 2 Sep 2016 19:58:44 +0200 Subject: Fix Windows build and most MSVC warnings --- include/modules/cap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules') 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. -- cgit v1.2.3