diff options
Diffstat (limited to 'src/fstring.cpp')
| -rw-r--r-- | src/fstring.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fstring.cpp b/src/fstring.cpp index ce5492b..f77e718 100644 --- a/src/fstring.cpp +++ b/src/fstring.cpp | |||
| @@ -110,15 +110,13 @@ int64_t &Bu::operator<<( int64_t &dst, const Bu::FString &sIn ) | |||
| 110 | 110 | ||
| 111 | float &Bu::operator<<( float &dst, const Bu::FString &sIn ) | 111 | float &Bu::operator<<( float &dst, const Bu::FString &sIn ) |
| 112 | { | 112 | { |
| 113 | double tmp; | 113 | sscanf( sIn.getStr(), "%f", &dst ); |
| 114 | sscanf( sIn.getStr(), "%f", &tmp ); | ||
| 115 | dst = tmp; | ||
| 116 | return dst; | 114 | return dst; |
| 117 | } | 115 | } |
| 118 | 116 | ||
| 119 | double &Bu::operator<<( double &dst, const Bu::FString &sIn ) | 117 | double &Bu::operator<<( double &dst, const Bu::FString &sIn ) |
| 120 | { | 118 | { |
| 121 | sscanf( sIn.getStr(), "%f", &dst ); | 119 | sscanf( sIn.getStr(), "%lf", &dst ); |
| 122 | return dst; | 120 | return dst; |
| 123 | } | 121 | } |
| 124 | 122 | ||
