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

pull/7429/head
Jeffrey C. Ollie 2025-05-24 12:12:28 -05:00
parent 5fb32fd8a0
commit f0fc82c80f
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 5 additions and 1 deletions

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));
}
};