Skip to content

Commit

Permalink
fix: s/little/Little on endian enum
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Nov 21, 2023
1 parent 5583e5c commit 119acb0
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 119acb0

Please sign in to comment.