aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-31 15:44:49 +0200
committerHimbeer <himbeer@disroot.org>2024-07-31 15:44:49 +0200
commit1160c3a1b2c9d5532994898266371f1b042089a3 (patch)
tree0185f64ece605ec01efd0f6ef63eb6cb8df78ac2
parentc0c2706012cf29dda796c8e7281afe16aac73e9f (diff)
root: Fix 'registers' initialization array multiplication
-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);