Skip to content

Commit e9d6274

Browse files
Karryjasonmp85
authored andcommitted
add explicit cast to signed value (multiplication of uint64_t with -1)
1 parent 333ff69 commit e9d6274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ multiset_card(multiset_t const * i_msp)
19671967
else if (estimator <= large_estimator_cutoff)
19681968
retval = estimator;
19691969
else
1970-
return (-1 * two_to_l) * log(1.0 - (estimator/two_to_l));
1970+
return (-1 * (int64_t)two_to_l) * log(1.0 - (estimator/two_to_l));
19711971
}
19721972
break;
19731973

0 commit comments

Comments
 (0)