fix(ke/cpu): use bitSizeOf instead of sizeOf in cpumask

This commit is contained in:
Loïc Grégoire
2026-04-14 22:19:05 -04:00
parent 8ef4eed29d
commit 9a08d8ab4b
+1 -1
View File
@@ -57,7 +57,7 @@ pub fn CpuLocal(comptime T: type, comptime init: T) type {
/// Bitmask of CPUs.
pub const CpuMask = struct {
const bits_per_word = @sizeOf(usize) * 8;
const bits_per_word = @bitSizeOf(usize);
const num_words = (config.CONFIG_NCPUS + bits_per_word - 1) / bits_per_word;
bits: [num_words]usize,