Remove truncf() all together.
This commit is contained in:
parent
8d1698d21a
commit
32a17bf442
1 changed files with 1 additions and 8 deletions
|
@ -53,13 +53,6 @@
|
||||||
// my hardware/driver requires many more.
|
// my hardware/driver requires many more.
|
||||||
#define POFF_UNITS 4
|
#define POFF_UNITS 4
|
||||||
|
|
||||||
#ifndef HAVE_TRUNCF
|
|
||||||
inline float truncf (float d) {
|
|
||||||
return (d < 0) ? -floorf(-d) : floorf(d);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// Local functions.
|
// Local functions.
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1125,7 +1118,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 = (d < 0) ? -floorf(-d) : floorf(d);
|
||||||
sprintf(_buf, _fmt.c_str(), d);
|
sprintf(_buf, _fmt.c_str(), d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue