From 0c854093693c86571c9bb667ebcf5825acae908f Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 15 Dec 2022 04:18:03 -0400 Subject: [PATCH] chore: call proper fn --- src/lib.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.zig b/src/lib.zig index 660dba3..c05ce9e 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -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 {