1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: disallow 'small_unsigned == signed' (#13967)

This commit is contained in:
Nick Treleaven
2022-04-12 17:37:30 +01:00
committed by GitHub
parent 6718958058
commit c780de6282
15 changed files with 116 additions and 33 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.
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')
}
res := C.zip_entry_write(zentry, data.data, data.len)