Browse Source

Change implicit conversion to explicit conversion to remove warning (#4308)

pull/4309/head
masnm 3 months ago
committed by GitHub
parent
commit
10b01ba7c2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/external/par_shapes.h

+ 1
- 1
src/external/par_shapes.h 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() / p">(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;

Loading…
Cancel
Save