mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
parent
be693e95ff
commit
ad8284bac6
1 changed files with 4 additions and 1 deletions
|
@ -212,7 +212,10 @@ Optional<JsonValue> JsonParser::parse_number()
|
||||||
whole = number.value();
|
whole = number.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
int fraction = fraction_string.to_uint().value();
|
auto fraction_string_uint = fraction_string.to_uint();
|
||||||
|
if (!fraction_string_uint.has_value())
|
||||||
|
return {};
|
||||||
|
int fraction = fraction_string_uint.value();
|
||||||
fraction *= (whole < 0) ? -1 : 1;
|
fraction *= (whole < 0) ? -1 : 1;
|
||||||
|
|
||||||
auto divider = 1;
|
auto divider = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue