diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-31 22:32:53 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-31 22:32:53 +0100 |
| commit | f57201bbd1f85772536e050b490a313ca62cb1b7 (patch) | |
| tree | 962ce81e9548d57f84cdab5cadd279f8172d0464 /core/compress | |
| parent | 2db6fea6655215452d445f327cadda815d65afd9 (diff) | |
Remove unneeded semicolons from the core library
Diffstat (limited to 'core/compress')
| -rw-r--r-- | core/compress/common.odin | 8 | ||||
| -rw-r--r-- | core/compress/gzip/gzip.odin | 2 | ||||
| -rw-r--r-- | core/compress/zlib/zlib.odin | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/core/compress/common.odin b/core/compress/common.odin index 2364f1c8d..b245e35b2 100644 --- a/core/compress/common.odin +++ b/core/compress/common.odin @@ -141,7 +141,7 @@ Context_Memory_Input :: struct #packed { size_packed: i64, size_unpacked: i64, } -#assert(size_of(Context_Memory_Input) == 64); +#assert(size_of(Context_Memory_Input) == 64) Context_Stream_Input :: struct #packed { input_data: []u8, @@ -432,7 +432,7 @@ peek_bits_no_refill_lsb :: proc{peek_bits_no_refill_lsb_from_memory, peek_bits_n @(optimization_mode="speed") read_bits_lsb_from_memory :: #force_inline proc(z: ^Context_Memory_Input, width: u8) -> u32 { k := #force_inline peek_bits_lsb(z, width) - #force_inline consume_bits_lsb(z, width); + #force_inline consume_bits_lsb(z, width) return k } @@ -448,7 +448,7 @@ read_bits_lsb :: proc{read_bits_lsb_from_memory, read_bits_lsb_from_stream} @(optimization_mode="speed") read_bits_no_refill_lsb_from_memory :: #force_inline proc(z: ^Context_Memory_Input, width: u8) -> u32 { k := #force_inline peek_bits_no_refill_lsb(z, width) - #force_inline consume_bits_lsb(z, width); + #force_inline consume_bits_lsb(z, width) return k } @@ -465,7 +465,7 @@ read_bits_no_refill_lsb :: proc{read_bits_no_refill_lsb_from_memory, read_bits_n @(optimization_mode="speed") discard_to_next_byte_lsb_from_memory :: proc(z: ^Context_Memory_Input) { discard := u8(z.num_bits & 7) - #force_inline consume_bits_lsb(z, discard); + #force_inline consume_bits_lsb(z, discard) } diff --git a/core/compress/gzip/gzip.odin b/core/compress/gzip/gzip.odin index 1ef7cc827..e49a12f1c 100644 --- a/core/compress/gzip/gzip.odin +++ b/core/compress/gzip/gzip.odin @@ -33,7 +33,7 @@ Header :: struct #packed { xfl: Compression_Flags, os: OS, } -#assert(size_of(Header) == 10); +#assert(size_of(Header) == 10) Header_Flag :: enum u8 { // Order is important diff --git a/core/compress/zlib/zlib.odin b/core/compress/zlib/zlib.odin index ad9d44d4d..c44dc1a63 100644 --- a/core/compress/zlib/zlib.odin +++ b/core/compress/zlib/zlib.odin @@ -510,7 +510,7 @@ inflate_raw :: proc(z: ^$C, expected_output_size := -1, allocator := context.all */ reserve(&z.output.buf, expected_output_size) resize (&z.output.buf, expected_output_size) - }; + } if len(z.output.buf) != expected_output_size { return .Resize_Failed |