Explorar o código

use c-styl cast in a c-file

Kim Kulling %!s(int64=5) %!d(string=hai) anos
pai
achega
b8ec93aa21
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;