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

Fixed /W4 compile warnings in sample SimpleOpenGL.
pull/3127/head
Kim Kulling 2020-04-02 21:02:14 +02:00 committed by GitHub
commit 6b68c0ee45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;