aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-31 13:02:38 -0700
committerJacob Young <jacobly0@users.noreply.github.com>2023-10-31 21:37:35 -0400
commit3fc6fc68129219a026ae3d7dff82513758e33a21 (patch)
treeab1a4fdc8886513ddbbfa7167ecf92eede629cfd /src/Sema.zig
parent149200aac5f7f78fbb3427e3a9445c80efd2116b (diff)
downloadzig-3fc6fc68129219a026ae3d7dff82513758e33a21.tar.gz
zig-3fc6fc68129219a026ae3d7dff82513758e33a21.zip
std.builtin.Endian: make the tags lower case
Let's take this breaking change opportunity to fix the style of this enum.
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 293633dbc0..e8eeb78c71 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -26835,7 +26835,7 @@ fn structFieldPtrByIndex(
// cause miscompilations; it only means the field pointer uses bit masking when it
// might not be strictly necessary.
if (parent_align != .none and ptr_ty_data.packed_offset.bit_offset % 8 == 0 and
- target.cpu.arch.endian() == .Little)
+ target.cpu.arch.endian() == .little)
{
const elem_size_bytes = try sema.typeAbiSize(ptr_ty_data.child.toType());
const elem_size_bits = ptr_ty_data.child.toType().bitSize(mod);
@@ -30736,8 +30736,8 @@ fn bitCastUnionFieldVal(
if (field_size > old_size) {
const min_size = @max(old_size, 1);
switch (endian) {
- .Little => @memset(buffer[min_size - 1 ..], 0xaa),
- .Big => @memset(buffer[0 .. buffer.len - min_size + 1], 0xaa),
+ .little => @memset(buffer[min_size - 1 ..], 0xaa),
+ .big => @memset(buffer[0 .. buffer.len - min_size + 1], 0xaa),
}
}
@@ -30746,7 +30746,7 @@ fn bitCastUnionFieldVal(
error.ReinterpretDeclRef => return null,
};
- break :offset if (endian == .Big) buffer.len - field_size else 0;
+ break :offset if (endian == .big) buffer.len - field_size else 0;
},
.Auto => unreachable,
};