Merge pull request #3321 from assimp/kimkulling-patch-7

use c-style cast in a c-file
pull/3280/head^2
Kim Kulling 2020-07-11 22:43:44 +02:00 committed by GitHub
commit 1324b4b27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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