Don't cast to float, use floorf
This commit is contained in:
parent
91810d8efd
commit
869e4bdca3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user