mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
OSC: account for 32-bit systems in comptime Command size check
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user