Avoid strtof() for portability reasons.
This commit is contained in:
parent
bf423ef0ca
commit
606f9173b2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue