Use floor() insstead of floorf()
This commit is contained in:
parent
11e0b75bc3
commit
3143e44faa
1 changed files with 1 additions and 1 deletions
|
@ -1118,7 +1118,7 @@ FGTextLayer::Chunk::getValue () const
|
|||
break;
|
||||
case DOUBLE_VALUE:
|
||||
double d = _offs + _node->getFloatValue() * _mult;
|
||||
if (_trunc) d = (d < 0) ? -floorf(-d) : floorf(d);
|
||||
if (_trunc) d = (d < 0) ? -floor(-d) : floor(d);
|
||||
sprintf(_buf, _fmt.c_str(), d);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue