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

orm: declare missing functions to handle literal types (#16627)

This commit is contained in:
Felipe Pena
2022-12-09 15:34:34 -03:00
committed by GitHub
parent b6c2aab092
commit 1ba1f99b9c
3 changed files with 49 additions and 0 deletions

View File

@ -562,6 +562,16 @@ pub fn int_to_primitive(b int) Primitive {
return Primitive(b)
}
// int_literal_to_primitive handles int literal value
pub fn int_literal_to_primitive(b int) Primitive {
return Primitive(b)
}
// float_literal_to_primitive handles float literal value
pub fn float_literal_to_primitive(b f64) Primitive {
return Primitive(b)
}
pub fn i64_to_primitive(b i64) Primitive {
return Primitive(b)
}