pull/13967/head
Nick Treleaven 2022-04-07 19:53:45 +01:00
parent 542e8afc4a
commit d91a24a372
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ pub fn (mut zentry Zip) crc32() u32 {
// write_entry compresses an input buffer for the current zip entry. // write_entry compresses an input buffer for the current zip entry.
pub fn (mut zentry Zip) write_entry(data []byte) ? { pub fn (mut zentry Zip) write_entry(data []byte) ? {
if (data[0] & 0xff) == -1 { if int(data[0] & 0xff) == -1 {
return error('szip: cannot write entry') return error('szip: cannot write entry')
} }
res := C.zip_entry_write(zentry, data.data, data.len) res := C.zip_entry_write(zentry, data.data, data.len)