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

more C warnings fixed

This commit is contained in:
Alexander Medvednikov
2019-09-15 15:36:05 +03:00
parent e3bd72e8e2
commit 849bef987c
9 changed files with 30 additions and 25 deletions

View File

@ -22,7 +22,7 @@ pub fn get_error_msg(code int) string {
if _ptr_text == 0 {
return ''
}
return tos(_ptr_text, C.strlen(_ptr_text))
return tos(_ptr_text, vstrlen(_ptr_text))
}
pub fn ls(path string) []string {