ソースを参照

Converting int to char

Fixes warning: narrowing conversion caused by trying to convert int to unsigned char
pull/4839/head
Aidon 4ヶ月前
committed by GitHub
コミット
513753c394
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: B5690EEEBB952194
1個のファイルの変更5行の追加1行の削除
  1. +5
    -1
      examples/core/core_2d_camera.c

+ 5
- 1
examples/core/core_2d_camera.c ファイルの表示

@ -44,7 +44,11 @@ int main(void)
spacing += (int)buildings[i].width;
buildColors[i] = (Color){ GetRandomValue(200, 240), GetRandomValue(200, 240), GetRandomValue(200, 250), 255 };
buildColors[i] = (Color){
(unsigned char)GetRandomValue(200, 240),
(unsigned char)GetRandomValue(200, 240),
(unsigned char)GetRandomValue(200, 250),
255};
}
Camera2D camera = { 0 };

読み込み中…
キャンセル
保存