zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ec5a433fdfa5067650e485ffcb0c087060976bbd (tree)
parent 7cb8813743731c81ffd551ced84a2d9dacf6d086
Author: antlilja <liljaanton2001@gmail.com>
Date:   Tue, 23 Jan 2024 21:48:12 +0100

Fix FastMath packed struct

* Added missing legacy field (unused_algebra)
* Made struct correct size (u32 -> u8)

Diffstat:
Msrc/codegen/llvm/Builder.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig @@ -7340,7 +7340,8 @@ const MemoryAccessInfo = packed struct(u32) { _: u13 = undefined, }; -pub const FastMath = packed struct(u32) { +pub const FastMath = packed struct(u8) { + unsafe_algebra: bool = false, // Legacy nnan: bool = false, ninf: bool = false, nsz: bool = false,