Fix assertion in Args::args()

This commit is contained in:
bjorn3
2026-02-06 21:07:16 +01:00
parent 7ff1898765
commit 9f218c5b3a
+2 -2
View File
@@ -1912,12 +1912,12 @@ impl KernelScheme for UserScheme {
}
}
pub trait Args: Copy {
trait Args: Copy {
fn args(self) -> [u64; 6];
}
impl<const N: usize> Args for [u64; N] {
fn args(self) -> [u64; 6] {
assert!(self.len() <= N);
const { assert!(N <= 6) };
core::array::from_fn(|i| self.get(i).copied().unwrap_or(0))
}
}