1
0
Fork 0

BSD doesn't have truncf(), it does have floorf() however

This commit is contained in:
ehofman 2004-01-23 18:05:05 +00:00
parent a739fad664
commit 44108678f7

View file

@ -1119,7 +1119,7 @@ FGTextLayer::Chunk::getValue () const
break;
case DOUBLE_VALUE:
double d = _offs + _node->getFloatValue() * _mult;
if (_trunc) d = truncf(d);
if (_trunc) d = floorf(d);
sprintf(_buf, _fmt.c_str(), d);
break;
}