Skip to content

Commit

Permalink
Change implicit conversion to explicit conversion to remove warning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
masnm authored Sep 6, 2024
1 parent ed61bdb commit 10b01ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/external/par_shapes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ static par_shapes__rule* par_shapes__pick_rule(const char* name,
total += rule->weight;
}
}
float r = (float) rand() / RAND_MAX;
float r = (float) rand() / (float) RAND_MAX;
float t = 0;
for (int i = 0; i < nrules; i++) {
rule = rules + i;
Expand Down

0 comments on commit 10b01ba

Please sign in to comment.