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

all: byte => u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 14:58:56 +03:00
parent b49d873217
commit d4a0d6f73c
221 changed files with 1365 additions and 1365 deletions

View File

@ -147,7 +147,7 @@ pub fn (mut sem Semaphore) wait() {
continue // interrupted by signal
}
else {
panic(unsafe { tos_clone(&byte(C.strerror(C.errno))) })
panic(unsafe { tos_clone(&u8(C.strerror(C.errno))) })
}
}
}
@ -166,7 +166,7 @@ pub fn (mut sem Semaphore) try_wait() bool {
return false
}
else {
panic(unsafe { tos_clone(&byte(C.strerror(C.errno))) })
panic(unsafe { tos_clone(&u8(C.strerror(C.errno))) })
}
}
}
@ -195,7 +195,7 @@ pub fn (mut sem Semaphore) timed_wait(timeout time.Duration) bool {
break
}
else {
panic(unsafe { tos_clone(&byte(C.strerror(e))) })
panic(unsafe { tos_clone(&u8(C.strerror(e))) })
}
}
}
@ -207,5 +207,5 @@ pub fn (sem Semaphore) destroy() {
if res == 0 {
return
}
panic(unsafe { tos_clone(&byte(C.strerror(res))) })
panic(unsafe { tos_clone(&u8(C.strerror(res))) })
}