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

os: fix stat mode signedness warning

This commit is contained in:
Nicolas Sauzede 2019-11-08 01:02:02 +01:00 committed by Alexander Medvednikov
parent 27f6b2dd73
commit 5a8c3daba3

View File

@ -48,7 +48,7 @@ struct FileInfo {
struct C.stat { struct C.stat {
st_size int st_size int
st_mode int st_mode u32
st_mtime int st_mtime int
} }
@ -794,7 +794,7 @@ pub fn is_dir(path string) bool {
return false return false
} }
// ref: https://code.woboq.org/gcc/include/sys/stat.h.html // ref: https://code.woboq.org/gcc/include/sys/stat.h.html
return (statbuf.st_mode & S_IFMT) == S_IFDIR return (int(statbuf.st_mode) & S_IFMT) == S_IFDIR
} }
} }