mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 19:59: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&) {
|
||||
// avoids crash
|
||||
}
|
||||
catch (const std::out_of_range&) {
|
||||
// avoids crash
|
||||
}
|
||||
|
||||
return isanumber;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user