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

fix byteptr warning

This commit is contained in:
Nicolas Sauzede 2019-11-07 23:30:07 +01:00 committed by Alexander Medvednikov
parent 3a99217592
commit 2f5de11c22

View File

@ -60,7 +60,7 @@ pub fn print_backtrace_skipping_top_frames(skipframes int) {
}
buf := [1000]byte
mut output := ''
for C.fgets(buf, 1000, f) != 0 {
for C.fgets(voidptr(buf), 1000, f) != 0 {
output += tos(buf, vstrlen(buf))
}
output = output.trim_space()+':'