mirror of https://github.com/raysan5/raylib
Change implicit conversion to explicit conversion to remove warning (#4308)
This commit is contained in:
parent
ed61bdb568
commit
10b01ba7c2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue