]> git.itanic.dy.fi Git - sdl-planets/commitdiff
Main loop: Suppress a compiler warning
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 2 Apr 2010 12:56:44 +0000 (15:56 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 2 Apr 2010 12:59:21 +0000 (15:59 +0300)
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c

diff --git a/main.c b/main.c
index 7f5e8038334b16f55053103f0dac1be32a4c332d..02ff5b224b9bc4007624b84fd0d8883aece1b409 100644 (file)
--- a/main.c
+++ b/main.c
@@ -237,7 +237,7 @@ static void loop(SDL_Surface *screen, int num_of_planets, double total_mass,
 
 
                printf("  \rFrames/s: %.2f, steps/s: %.2f, planets: %d"
-                      ", scale %.2f, zoom %.2f, step %d",
+                      ", scale %.2f, zoom %.2f, step %ld",
                       last_fps, last_sps, planets, status.time_scale,
                       camera.zoom, step_count);
                fflush(stdout);