mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-25 01:47:28 +00:00
Without this patch, we would end up printing garbage values when we encountered floating point infinity or NaN values, and also triggered UBSAN with Clang. This added code models `std::format`'s behavior: the sign is added the same way as with normal values and the strings 'nan' and 'inf' are printed.
26 KiB
26 KiB