changeset 32960:06d7501e046f

Make constants explicitly type float. This has been accidentally remove in r32984 but is more intelligible that way.
author ib
date Tue, 08 Mar 2011 11:06:27 +0000
parents b17dd13b3cce
children 323f96e59820
files gui/app.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.c	Tue Mar 08 10:25:28 2011 +0000
+++ b/gui/app.c	Tue Mar 08 11:06:27 2011 +0000
@@ -148,10 +148,10 @@
             case itPotmeter:
             case itVPotmeter:
             case itHPotmeter:
-                if (state < 0.0)
-                    state = 0.0;
-                if (state > 100.0)
-                    state = 100.0;
+                if (state < 0.0f)
+                    state = 0.0f;
+                if (state > 100.0f)
+                    state = 100.0f;
                 appMPlayer.mainItems[i].value = state;
                 break;
             }
@@ -169,10 +169,10 @@
             case itPotmeter:
             case itVPotmeter:
             case itHPotmeter:
-                if (state < 0.0)
-                    state = 0.0;
-                if (state > 100.0)
-                    state = 100.0;
+                if (state < 0.0f)
+                    state = 0.0f;
+                if (state > 100.0f)
+                    state = 100.0f;
                 appMPlayer.barItems[i].value = state;
                 break;
             }