Change implicit conversion to explicit conversion to remove warning

This commit is contained in:
Ahmmed Sakib Noman 2024-09-06 22:21:45 +06:00
parent ed61bdb568
commit 2e4b782c18
No known key found for this signature in database
GPG Key ID: 1E259672347535AE

View File

@ -1130,7 +1130,7 @@ static par_shapes__rule* par_shapes__pick_rule(const char* name,
total += rule->weight; total += rule->weight;
} }
} }
float r = (float) rand() / RAND_MAX; float r = (float) rand() / (float) RAND_MAX;
float t = 0; float t = 0;
for (int i = 0; i < nrules; i++) { for (int i = 0; i < nrules; i++) {
rule = rules + i; rule = rules + i;