chore: call proper fn

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-12-15 04:18:03 -04:00
parent 675084e77c
commit 0c85409369
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ pub const Emulator = struct {
pub fn writeImpl(pointer: *anyopaque, addr: u32, value: u8) void {
const self = @ptrCast(Ptr, @alignCast(alignment, pointer));
return @call(.{ .modifier = .always_inline }, ptr_info.Pointer.child.read, .{ self, addr, value });
return @call(.{ .modifier = .always_inline }, ptr_info.Pointer.child.write, .{ self, addr, value });
}
pub fn registersImpl(pointer: *anyopaque) [16]u32 {