user32: Use float literals for float operation.
thomas.faber at reactos.org
Mon Sep 7 03:47:30 CDT 2015
No need to use double math since the variable is float.
Fixes an MSVC warning:
edit.c(634) : warning C4305: '-=' : truncation from 'double' to 'float'
Alternatively, FP math could be completely avoided here using something
if (current_line->width > 6 * fw / 5)
next = prev * fw / (current_line->width - fw / 5);
next = prev * fw / current_line->width;
However that's harder to read so is probably not a good idea.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 789 bytes
Desc: not available
More information about the wine-patches