]> git.mxchange.org Git - flightgear.git/commitdiff
BSD doesn't have truncf(), it does have floorf() however
authorehofman <ehofman>
Fri, 23 Jan 2004 18:05:05 +0000 (18:05 +0000)
committerehofman <ehofman>
Fri, 23 Jan 2004 18:05:05 +0000 (18:05 +0000)
src/Cockpit/panel.cxx

index 25d6066cab59e60c4a3e8a16b82e2ed5d1520cc8..63185884ca897488190f72d78cf2c76f4f9dd351 100644 (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;
     }