ソースを参照

use c-styl cast in a c-file

Kim Kulling 5 年 前
コミット
b8ec93aa21
1 ファイル変更1 行追加1 行削除
  1. 1 1
      samples/SimpleOpenGL/Sample_SimpleOpenGL.c

+ 1 - 1
samples/SimpleOpenGL/Sample_SimpleOpenGL.c

@@ -278,7 +278,7 @@ void do_motion (void)
 	static int frames = 0;
 
 	int time = glutGet(GLUT_ELAPSED_TIME);
-	angle += static_cast<float>((time-prev_time)*0.01);
+	angle += (float)((time-prev_time)*0.01);
 	prev_time = time;
 
 	frames += 1;