diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index b4b3e62c5cd960c149c34f4f34220d3e88d3447c..a1b530a9b19f2233e5f5efa9e3b2f408c52f703c 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -50,7 +50,7 @@ pub fn fromPosixSignalContext(ctx_ptr: ?*const anyopaque) ?Native { }; // I have no idea why the kernel is storing these registers in such a bizarre order... - std.mem.reverse(native.r[0..]); + std.mem.reverse(u32, native.r[0..]); return native; } else if (native_arch == .loongarch32 and native_os == .linux) {