Make the status type a struct, not an int32_t

This commit is contained in:
Nigel Tao committed 2018-08-11 13:27:29 +10:00
1 parent 9c0b2d2f5c
commit 2a32a86a6c
26 files changed
+791 -668

No files matched your search

+2 -2
View File
@@ -58,8 +58,8 @@ uint8_t src_buffer[SRC_BUFFER_SIZE];
int main(int argc, char** argv) {
wuffs_crc32__ieee_hasher h = ((wuffs_crc32__ieee_hasher){});
wuffs_base__status z = h.check_wuffs_version(sizeof h, WUFFS_VERSION);
if (z) {
fprintf(stderr, "%s\n", wuffs_crc32__status__string(z));
if (z.code) {
fprintf(stderr, "%s\n", wuffs_crc32__status__string(z.code));
return 1;
}