Don't cast to float, use floorf

This commit is contained in:
John Scipione
2013-05-09 21:29:13 -04:00
parent 91810d8efd
commit 869e4bdca3
+1 -1
View File
@@ -956,7 +956,7 @@ BMenuField::InitObject(const char* label)
SetLabel(label);
if (label)
fDivider = (float)floor(Frame().Width() / 2.0f);
fDivider = floorf(Frame().Width() / 2.0f);
else
fDivider = 0;
}