Michael Stefaniuc : rsaenh: Don't compare a BOOL with 1 (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 18 10:26:29 CDT 2015
Module: wine
Branch: master
Commit: c641205cee71bf8b3c60891266030f8e78201ebc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c641205cee71bf8b3c60891266030f8e78201ebc
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Mar 18 11:48:23 2015 +0100
rsaenh: Don't compare a BOOL with 1 (PVS-Studio).
---
dlls/rsaenh/mpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/rsaenh/mpi.c b/dlls/rsaenh/mpi.c
index f75d89f..03e3102 100644
--- a/dlls/rsaenh/mpi.c
+++ b/dlls/rsaenh/mpi.c
@@ -1783,7 +1783,7 @@ static int mp_div_d (const mp_int * a, mp_digit b, mp_int * c, mp_digit * d)
}
/* power of two ? */
- if (s_is_power_of_two(b, &ix) == 1) {
+ if (s_is_power_of_two(b, &ix)) {
if (d != NULL) {
*d = a->dp[0] & ((((mp_digit)1)<<ix) - 1);
}
More information about the wine-cvs
mailing list