BSD doesn't have truncf(), it does have floorf() however
This commit is contained in:
parent
a739fad664
commit
44108678f7
1 changed files with 1 additions and 1 deletions
|
@ -1119,7 +1119,7 @@ FGTextLayer::Chunk::getValue () const
|
||||||
break;
|
break;
|
||||||
case DOUBLE_VALUE:
|
case DOUBLE_VALUE:
|
||||||
double d = _offs + _node->getFloatValue() * _mult;
|
double d = _offs + _node->getFloatValue() * _mult;
|
||||||
if (_trunc) d = truncf(d);
|
if (_trunc) d = floorf(d);
|
||||||
sprintf(_buf, _fmt.c_str(), d);
|
sprintf(_buf, _fmt.c_str(), d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue