Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: s/little/Little on endian enum
Browse files Browse the repository at this point in the history
nilslice committed Nov 21, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
addaleax Anna Henningsen
1 parent 5583e5c commit 119acb0
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Memory.zig
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ pub fn load(self: Self, buf: []u8) void {
}

const x = extism.load_u64(self.offset + @as(u64, i));
std.mem.writeInt(u64, buf[i..][0..8], x, std.builtin.Endian.little);
std.mem.writeInt(u64, buf[i..][0..8], x, std.builtin.Endian.Little);
i += 8;
}
}
@@ -39,7 +39,7 @@ pub fn store(self: Self, buf: []const u8) void {
i += 1;
continue;
}
const data = std.mem.readInt(u64, buf[i..][0..8], std.builtin.Endian.little);
const data = std.mem.readInt(u64, buf[i..][0..8], std.builtin.Endian.Little);
extism.store_u64(self.offset + @as(u64, i), data);
i += 8;
}
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ pub const Plugin = struct {
}

const x = extism.input_load_u64(@as(u64, i));
std.mem.writeInt(u64, buf[i..][0..8], x, std.builtin.Endian.little);
std.mem.writeInt(u64, buf[i..][0..8], x, std.builtin.Endian.Little);
i += 8;
}
return buf;

0 comments on commit 119acb0

Please sign in to comment.