mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-01 16:32:54 +03:00
parent
bf488338aa
commit
472a5732e2
@ -100,6 +100,8 @@ Optional<int> str_to_int_ifp(StringView str)
|
||||
bool negative = not str.empty() and str[0] == '-';
|
||||
if (negative)
|
||||
str = str.substr(1_byte);
|
||||
if (str.empty())
|
||||
return {};
|
||||
|
||||
unsigned int res = 0;
|
||||
for (auto c : str)
|
||||
|
Loading…
Reference in New Issue
Block a user