diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-04-18 11:43:48 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-04-18 11:43:48 +0200 |
commit | 547def0ea6e3eab07b7e4c48cee6d6a81f6155e1 (patch) | |
tree | 8d8e8a8945ce30270fffb125444586db68507b41 | |
parent | 80bfa4774a408f109dd49a985a22ff64b08ce1df (diff) | |
download | astra-547def0ea6e3eab07b7e4c48cee6d6a81f6155e1.tar.gz astra-547def0ea6e3eab07b7e4c48cee6d6a81f6155e1.tar.bz2 astra-547def0ea6e3eab07b7e4c48cee6d6a81f6155e1.tar.xz astra-547def0ea6e3eab07b7e4c48cee6d6a81f6155e1.zip |
Fix stringToInt parsing doubles
-rw-r--r-- | src/Utilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utilities.cpp b/src/Utilities.cpp index 4b80503..c9740bf 100644 --- a/src/Utilities.cpp +++ b/src/Utilities.cpp @@ -42,7 +42,7 @@ namespace StringUtil { int stringToInt(const std::string& s) { - double i; + int i; std::istringstream iss(s); iss.imbue(std::locale::classic()); iss >> i; |