Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[core] fast_float: parse scientific input
Browse files Browse the repository at this point in the history
  • Loading branch information
espkk committed Jan 24, 2022
1 parent 292161b commit 0f8c436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/engine/src/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ bool DATA::Convert(S_TOKEN_TYPE type)
case VAR_FLOAT:
Data_type = VAR_FLOAT;
fValue = 0.0f;
from_chars(sValue.data(), sValue.data() + sValue.length(), fValue, fast_float::fixed);
fast_float::from_chars(sValue.data(), sValue.data() + sValue.length(), fValue);
return true;
case STRING:
case VAR_STRING:
Expand Down Expand Up @@ -1147,7 +1147,7 @@ bool DATA::Convert(S_TOKEN_TYPE type)
AttributesClass = nullptr;
Data_type = VAR_FLOAT;
fValue = 0.0f;
from_chars(sValue.data(), sValue.data() + sValue.length(), fValue, fast_float::fixed);
fast_float::from_chars(sValue.data(), sValue.data() + sValue.length(), fValue);
return true;
}
break;
Expand Down

0 comments on commit 0f8c436

Please sign in to comment.