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:
@ -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.
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user