From ffadcffdc135ac5e650ddd75720d7e5ee0746fc2 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 3 Sep 2023 22:32:25 +0200 Subject: [PATCH] syntax: in zig use ptr.elem instead of ptr.*.elem --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index e05485d..ceb794a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -18,7 +18,7 @@ const Syn = c.input_event{ .type = c.EV_SYN, .code = c.SYN_REPORT, .value = 0, . var uidev: *align(8) void = undefined; fn event_equal(e1: *const c.input_event, e2: *const c.input_event) bool { - return (e1.*.type == e2.*.type) and (e1.*.code == e2.*.code) and (e1.*.value == e2.*.value); + return (e1.type == e2.type) and (e1.code == e2.code) and (e1.value == e2.value); } fn event_write(event: *const c.input_event) !void {