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

ci: fix cross compilation of vc/v.c

This commit is contained in:
Delyan Angelov 2021-10-29 17:12:05 +03:00
parent 4c67c01e72
commit 71392111f8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -425,7 +425,7 @@ pub fn is_writable(path string) bool {
p := path.replace('/', '\\') p := path.replace('/', '\\')
wp := p.to_wide() wp := p.to_wide()
res := C._waccess(wp, w_ok) != -1 res := C._waccess(wp, w_ok) != -1
unsafe { wp.free() } unsafe { free(wp) } // &u16
unsafe { p.free() } unsafe { p.free() }
return res return res
} $else { } $else {
@ -440,7 +440,7 @@ pub fn is_readable(path string) bool {
p := path.replace('/', '\\') p := path.replace('/', '\\')
wp := p.to_wide() wp := p.to_wide()
res := C._waccess(wp, r_ok) != -1 res := C._waccess(wp, r_ok) != -1
unsafe { wp.free() } unsafe { free(wp) } // &u16
unsafe { p.free() } unsafe { p.free() }
return res return res
} $else { } $else {