Commit c641205c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

rsaenh: Don't compare a BOOL with 1 (PVS-Studio).

parent 8fcef187
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment