0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Evan Haas b4bf3bdf7e std.fmt: Fix incorrect behavior with large floating point integers.
I consider this an interim workaround/hack until #1299 is finished.

There is a bug in the original C implementation of the errol3 (and errol4)
algorithm that can result in undefined behavior or an obviously incorrect
result (leading ':' in the output)

This change checks for those two problems and uses a slower fallback
path if they occur. I can't guarantee that this will always produce
the correct result, but since the workaround is only used if the original
algorithm is guaranteed to fail, it should never turn a previously-correct
result into an incorrect one.

Fixes #11283
History 2022-04-04 16:04:35 -04:00
..
include update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libc glibc: version-gate _DYNAMIC_STACK_SIZE_SOURCE 2022-01-28 18:36:23 -07:00
libcxx update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libcxxabi update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libunwind Import SPARCv9 libunwind 2022-02-13 17:16:22 +02:00
std std.fmt: Fix incorrect behavior with large floating point integers. 2022-04-04 16:04:35 -04:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00