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

@ -45,7 +45,7 @@ fn new_scanner(file_path string) &Scanner {
if c_text[0] == 0xEF && c_text[1] == 0xBB && c_text[2] == 0xBF {
// skip three BOM bytes
offset_from_begin := 3
raw_text = tos(c_text[offset_from_begin], C.strlen(c_text) - offset_from_begin)
raw_text = tos(c_text[offset_from_begin], vstrlen(c_text) - offset_from_begin)
}
}