1
0
Fork 0

Avoid strtof() for portability reasons.

This commit is contained in:
curt 2009-09-10 22:02:59 +00:00 committed by Tim Moore
parent bf423ef0ca
commit 606f9173b2

View 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;