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:
@ -234,7 +234,7 @@ fn str_to_primitive(str string, typ int) ?orm.Primitive {
|
||||
// byte
|
||||
9 {
|
||||
data := str.i8()
|
||||
return orm.Primitive(*unsafe { &byte(&data) })
|
||||
return orm.Primitive(*unsafe { &u8(&data) })
|
||||
}
|
||||
// u16
|
||||
10 {
|
||||
|
Reference in New Issue
Block a user