aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/root.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/root.zig b/src/root.zig
index a68ef7c..2e6ab5d 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -15,7 +15,7 @@ const Result = struct {
const SyscallError = error{Kernel};
fn ecall(number: usize, args: anytype) Result {
- comptime var registers = [max_args]usize{0} ** max_args;
+ comptime var registers = [_]usize{0} ** max_args;
inline for (args, 0..) |arg, i| {
if (i >= max_args) @compileError("Too many arguments to system call");
registers[i] = @bitCast(arg);