Skip to content

Commit

Permalink
Tweak float conversion again.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv committed Jan 23, 2019
1 parent 9d15f09 commit dca382e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/strconv.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Implementation of string conversions.
*
* Copyright (c) 2008-2018, Jeroen T. Vermeulen.
* Copyright (c) 2008-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
Expand Down Expand Up @@ -232,7 +232,8 @@ template<typename T> inline void from_string_float(const char Str[], T &Obj)
S.seekg(0);
S.clear();
S.str(Str);
ok = static_cast<bool>(S >> result);
S >> result;
ok = S.good() || S.eof();
}
break;
}
Expand Down

0 comments on commit dca382e

Please sign in to comment.