mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
String: String::to_int() should fail for any empty string, not just null.
This commit is contained in:
parent
f9089da2bc
commit
a0ee2bad72
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ int String::to_int(bool& ok) const
|
|||
int value = 0;
|
||||
int i = 0;
|
||||
|
||||
if (is_null()) {
|
||||
if (is_empty()) {
|
||||
ok = false;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue