]> git.mxchange.org Git - flightgear.git/commitdiff
Avoid strtof() for portability reasons.
authorcurt <curt>
Thu, 10 Sep 2009 22:02:59 +0000 (22:02 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 12 Sep 2009 13:47:52 +0000 (15:47 +0200)
src/Network/generic.cxx

index f952c1e66c4a2c2be058246e0593e3f17d8a9fc2..eb7911744c900fd5d21ef1ef87566530155d60ea 100644 (file)
@@ -378,7 +378,7 @@ bool FGGeneric::parse_message_ascii() {
 
         case FG_FIXED:
         case FG_FLOAT:
-            val = _in_message[i].offset + strtof(p1, 0) * _in_message[i].factor;
+            val = _in_message[i].offset + strtod(p1, 0) * _in_message[i].factor;
             _in_message[i].prop->setFloatValue((float)val);
             break;