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

net: byte fixes

This commit is contained in:
Alexander Medvednikov
2022-04-15 15:55:39 +03:00
parent fb192d949b
commit af73e195da
18 changed files with 54 additions and 65 deletions

View File

@ -39,7 +39,6 @@ pub const (
pub type Primitive = InfixType
| bool
| byte
| f32
| f64
| i16
@ -51,6 +50,7 @@ pub type Primitive = InfixType
| u16
| u32
| u64
| u8
pub enum OperationKind {
neq // !=
@ -467,7 +467,7 @@ pub fn i64_to_primitive(b i64) Primitive {
return Primitive(b)
}
pub fn byte_to_primitive(b byte) Primitive {
pub fn u8_to_primitive(b u8) Primitive {
return Primitive(b)
}