use c-styl cast in a c-file
parent
2cd1192bf1
commit
b8ec93aa21
|
@ -278,7 +278,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 += static_cast<float>((time-prev_time)*0.01);
|
angle += (float)((time-prev_time)*0.01);
|
||||||
prev_time = time;
|
prev_time = time;
|
||||||
|
|
||||||
frames += 1;
|
frames += 1;
|
||||||
|
|
Loading…
Reference in New Issue