OSC: account for 32-bit systems in comptime Command size check

This commit is contained in:
Jeffrey C. Ollie
2025-05-24 12:12:28 -05:00
parent 5fb32fd8a0
commit f0fc82c80f

View File

@@ -215,7 +215,11 @@ pub const Command = union(enum) {
};
comptime {
assert(@sizeOf(Command) == 64);
assert(@sizeOf(Command) == switch (@sizeOf(usize)) {
4 => 44,
8 => 64,
else => unreachable,
});
// @compileLog(@sizeOf(Command));
}
};