aboutsummaryrefslogtreecommitdiff
path: root/lib/std/tz.zig
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2022-01-24 21:40:19 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-01-28 21:03:21 -0500
commit63ee6e662582ee75ac804eb1a4dbdf4457b8f2d0 (patch)
treeac3694e98699bc57de2c5cc5b060c0c9e437c12e /lib/std/tz.zig
parent39083c31a550ed80f369f60d35791e98904b8096 (diff)
downloadzig-63ee6e662582ee75ac804eb1a4dbdf4457b8f2d0.tar.gz
zig-63ee6e662582ee75ac804eb1a4dbdf4457b8f2d0.zip
Rename mem.bswapAllFields to byteSwapAllFields
To match the renaming of `@bswap` to `@byteSwap` in https://github.com/ziglang/zig/commit/1fdb24827fb51351d5e31103069619668fae31c4.
Diffstat (limited to 'lib/std/tz.zig')
-rw-r--r--lib/std/tz.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/tz.zig b/lib/std/tz.zig
index d505a790b7..9d733efdfd 100644
--- a/lib/std/tz.zig
+++ b/lib/std/tz.zig
@@ -60,7 +60,7 @@ pub const Tz = struct {
if (legacy_header.version != 0 and legacy_header.version != '2' and legacy_header.version != '3') return error.BadVersion;
if (builtin.target.cpu.arch.endian() != std.builtin.Endian.Big) {
- std.mem.bswapAllFields(@TypeOf(legacy_header.counts), &legacy_header.counts);
+ std.mem.byteSwapAllFields(@TypeOf(legacy_header.counts), &legacy_header.counts);
}
if (legacy_header.version == 0) {
@@ -74,7 +74,7 @@ pub const Tz = struct {
if (!std.mem.eql(u8, &header.magic, "TZif")) return error.BadHeader;
if (header.version != '2' and header.version != '3') return error.BadVersion;
if (builtin.target.cpu.arch.endian() != std.builtin.Endian.Big) {
- std.mem.bswapAllFields(@TypeOf(header.counts), &header.counts);
+ std.mem.byteSwapAllFields(@TypeOf(header.counts), &header.counts);
}
return parseBlock(allocator, reader, header, false);