Skip to content

Commit

Permalink
Make new Zig master happy (keep-starknet-strange#97)
Browse files Browse the repository at this point in the history
make new master happy
  • Loading branch information
tcoratger authored Nov 3, 2023
1 parent 2c59a82 commit 280b016
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/math/fields/fields.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn Field(
u256,
lbe[0..],
num % Modulo,
std.builtin.Endian.Little,
.little,
);

var nonMont: F.NonMontgomeryDomainFieldElement = undefined;
Expand Down Expand Up @@ -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;
Expand All @@ -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,
);
}

Expand Down Expand Up @@ -378,7 +378,7 @@ pub fn Field(
return std.mem.readInt(
u256,
&bytes,
std.builtin.Endian.Little,
std.builtin.Endian.little,
);
}

Expand Down

0 comments on commit 280b016

Please sign in to comment.