Skip to content

Commit

Permalink
Fix negation of comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
neilslater committed Mar 29, 2019
1 parent 3ae98d8 commit 6d18e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/games_dice/probabilities.c
Expand Up @@ -472,7 +472,7 @@ ProbabilityList *pl_repeat_n_sum_k( ProbabilityList *pl, int n, int k, int kbest
pl_result->offset = pl->offset * k;

for ( i = 0; i < pl->slots; i++ ) {
if ( ! ( pl->probs[i] > 0.0 ) ) continue;
if ( pl->probs[i] <= 0.0 ) continue;

q = i + pl->offset;
calc_keep_distributions( pl, k, q, kbest, keep_distributions );
Expand Down

0 comments on commit 6d18e3b

Please sign in to comment.