From 280b0165a35d17a0b1508707538371b19cb78d57 Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:30:52 +0100 Subject: [PATCH] Make new Zig master happy (#97) make new master happy --- src/math/fields/fields.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/math/fields/fields.zig b/src/math/fields/fields.zig index e226a65b..e6fd3184 100644 --- a/src/math/fields/fields.zig +++ b/src/math/fields/fields.zig @@ -33,7 +33,7 @@ pub fn Field( u256, lbe[0..], num % Modulo, - std.builtin.Endian.Little, + .little, ); var nonMont: F.NonMontgomeryDomainFieldElement = undefined; @@ -75,10 +75,10 @@ pub fn Field( pub fn fromBytes(bytes: [BytesSize]u8) Self { var non_mont: F.NonMontgomeryDomainFieldElement = undefined; inline for (0..4) |i| { - non_mont[i] = std.mem.readIntSlice( + non_mont[i] = std.mem.readInt( u64, bytes[i * 8 .. (i + 1) * 8], - std.builtin.Endian.Little, + .little, ); } var ret: Self = undefined; @@ -101,11 +101,11 @@ pub fn Field( ); var ret: [BytesSize]u8 = undefined; inline for (0..4) |i| { - std.mem.writeIntSlice( + std.mem.writeInt( u64, ret[i * 8 .. (i + 1) * 8], non_mont[i], - std.builtin.Endian.Little, + .little, ); } @@ -378,7 +378,7 @@ pub fn Field( return std.mem.readInt( u256, &bytes, - std.builtin.Endian.Little, + std.builtin.Endian.little, ); }