changeset 36276:f7ef757c95c0

Be more pedantic about type of the constant.
author ib
date Tue, 30 Jul 2013 10:57:57 +0000
parents 26e1408891f8
children 734f46ef6277
files gui/dialog/menu.c gui/ui/actions.c gui/win32/gui.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/menu.c	Tue Jul 30 10:41:53 2013 +0000
+++ b/gui/dialog/menu.c	Tue Jul 30 10:57:57 2013 +0000
@@ -589,7 +589,7 @@
      {
        a169 = (FFABS(movie_aspect - 16.0f / 9.0f) <= 0.01f);
        a43 = (FFABS(movie_aspect - 4.0f / 3.0f) <= 0.01f);
-       a235 = (FFABS(movie_aspect - 2.35) <= 0.01f);
+       a235 = (FFABS(movie_aspect - 2.35f) <= 0.01f);
      }
 
     AspectMenu=AddSubMenu( window1, (const char*)aspect_xpm, Menu,MSGTR_MENU_AspectRatio );
--- a/gui/ui/actions.c	Tue Jul 30 10:41:53 2013 +0000
+++ b/gui/ui/actions.c	Tue Jul 30 10:57:57 2013 +0000
@@ -435,7 +435,7 @@
             break;
 
         case 4:
-            aspect = 2.35;
+            aspect = 2.35f;
             break;
 
         case 1:
--- a/gui/win32/gui.c	Tue Jul 30 10:41:53 2013 +0000
+++ b/gui/win32/gui.c	Tue Jul 30 10:57:57 2013 +0000
@@ -482,7 +482,7 @@
                             aspect = 4.0f / 3.0f;
                             break;
                         case ID_ASPECT3:
-                            aspect = 2.35;
+                            aspect = 2.35f;
                             break;
                         default:
                             aspect = -1;