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

@ -74,7 +74,7 @@ pub fn (mut cb Clipboard) get_text() string {
return ''
}
utf8_clip := C.darwin_get_pasteboard_text(cb.pb)
return unsafe { tos_clone(&byte(utf8_clip)) }
return unsafe { tos_clone(&u8(utf8_clip)) }
}
// new_primary returns a new X11 `PRIMARY` type `Clipboard` instance allocated on the heap.

View File

@ -398,7 +398,7 @@ fn read_property(d &C.Display, w Window, p Atom) Property {
actual_format := 0
nitems := u64(0)
bytes_after := u64(0)
ret := &byte(0)
ret := &u8(0)
mut read_bytes := 1024
for {
if ret != 0 {