[USER32]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 7 Sep 2015 16:11:59 +0000 (16:11 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 7 Sep 2015 16:11:59 +0000 (16:11 +0000)
- Fix MSVC warning (C4305: '-=' : truncation from 'double' to 'float')

svn path=/trunk/; revision=69091

reactos/win32ss/user/user32/controls/edit.c

index 7c16e44..a597f1d 100644 (file)
@@ -649,7 +649,7 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
                        prev = current_line->net_length - 1;
                        w = current_line->net_length;
                        d = (float)current_line->width/(float)fw;
-                       if (d > 1.2) d -= 0.2;
+                       if (d > 1.2f) d -= 0.2f;
                        next = prev/d;
                        if (next >= prev) next = prev-1;
                        do {