mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 11:49:59 +01:00
BugFix test number string
This commit is contained in:
@@ -204,6 +204,9 @@ bool BaseToolkit::is_a_number(const std::string& str, int *val)
|
|||||||
catch (const std::invalid_argument&) {
|
catch (const std::invalid_argument&) {
|
||||||
// avoids crash
|
// avoids crash
|
||||||
}
|
}
|
||||||
|
catch (const std::out_of_range&) {
|
||||||
|
// avoids crash
|
||||||
|
}
|
||||||
|
|
||||||
return isanumber;
|
return isanumber;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user