瀏覽代碼

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

pull/4309/head
masnm 3 月之前
committed by GitHub
父節點
當前提交
10b01ba7c2
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/external/par_shapes.h

+ 1
- 1
src/external/par_shapes.h 查看文件

@ -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() / p">(float) RAND_MAX;
float t = 0;
for (int i = 0; i < nrules; i++) {
rule = rules + i;

Loading…
取消
儲存