标签: c visual-studio floating-point
我有MSVC警告C4305:' - =':从'double'截断到'float'
float d; d = (float)current_line->width/(float)fw; if (d > 1.2) d -= 0.2;
我该如何解决?