diff options
| author | Techatrix <19954306+Techatrix@users.noreply.github.com> | 2023-10-30 00:02:57 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-16 16:27:31 -0800 |
| commit | ec358d6db5a10989590e11bbbbd3bed9f81cf1f4 (patch) | |
| tree | bd5affb8ff6bbbb4ea8ac22554c0a782d73bb261 /lib/std/math/float.zig | |
| parent | 4ace1f5a7ffeb569e97dc78807a1eacc5565a272 (diff) | |
| download | zig-ec358d6db5a10989590e11bbbbd3bed9f81cf1f4.tar.gz zig-ec358d6db5a10989590e11bbbbd3bed9f81cf1f4.zip | |
sema: fix safe integer arithmetic operations on undefined values
Previously `@as(i64, undefined) +% 1` would produce `@as(@TypeOf(undefined), undefined)` which now gives `@as(i64, undefined)`.
Previously `@as(i64, undefined) +| 1` would hit an assertion which now gives `@as(i64, undefined)`.
Diffstat (limited to 'lib/std/math/float.zig')
0 files changed, 0 insertions, 0 deletions
