소스 검색

Merge pull request #3124 from malortie/fix-sample-simpleogl-w4-compile-warnings

Fixed /W4 compile warnings in sample SimpleOpenGL.
Kim Kulling 5 년 전
부모
커밋
6b68c0ee45
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      samples/SimpleOpenGL/Sample_SimpleOpenGL.c

+ 1 - 1
samples/SimpleOpenGL/Sample_SimpleOpenGL.c

@@ -245,7 +245,7 @@ void do_motion (void)
 	static int frames = 0;
 	static int frames = 0;
 
 
 	int time = glutGet(GLUT_ELAPSED_TIME);
 	int time = glutGet(GLUT_ELAPSED_TIME);
-	angle += (time-prev_time)*0.01;
+	angle += (time-prev_time)*0.01f;
 	prev_time = time;
 	prev_time = time;
 
 
 	frames += 1;
 	frames += 1;