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

cgen: fix warnings (#5820)

This commit is contained in:
ka-weihe
2020-07-14 00:16:31 +02:00
committed by GitHub
parent 042add0e7f
commit df45488e09
14 changed files with 59 additions and 55 deletions

View File

@@ -241,7 +241,7 @@ extract_entry extracts the current zip entry into output file.
@return the return code - 0 on success, negative number (< 0) on error.
*/
pub fn (mut zentry zip_ptr) extract_entry(path string) /*?*/bool {
if C.access(path.str, 0) == -1 {
if C.access(charptr(path.str), 0) == -1 {
return false
//return error('Cannot open file for extracting, file not exists')
}