mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
Change implicit conversion to explicit conversion to remove warning (#4308)
This commit is contained in:
2
src/external/par_shapes.h
vendored
2
src/external/par_shapes.h
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user