[compress] 32-bit cleanness.

This commit is contained in:
Jeroen van Rijn
2022-03-03 15:10:19 +01:00
parent 16c6dbcbe5
commit 8af08f2153
2 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -139,7 +139,13 @@ Context_Memory_Input :: struct #packed {
size_packed: i64,
size_unpacked: i64,
}
#assert(size_of(Context_Memory_Input) == 64)
when size_of(rawptr) == 8 {
#assert(size_of(Context_Memory_Input) == 64)
} else {
// e.g. `-target:windows_386`
#assert(size_of(Context_Memory_Input) == 52)
}
Context_Stream_Input :: struct #packed {
input_data: []u8,