OSC: account for 32-bit systems in comptime Command size check
parent
5fb32fd8a0
commit
f0fc82c80f
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue