Skip to content

Commit

Permalink
Revert "fix: s/little/Little on endian enum"
Browse files Browse the repository at this point in the history
This reverts commit 119acb0.
  • Loading branch information
mhmd-azeez committed Nov 22, 2023
1 parent ac96d50 commit 85c4d07
Show file tree
Hide file tree
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
Expand Up @@ -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;
}
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85c4d07

Please sign in to comment.