mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Allow with modifier for builtin and user functions (#42)
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
1c492144b3
commit
a1d0f8576a
@@ -190,6 +190,11 @@ impl Value {
|
||||
Value::Number(Number(OrderedFloat(v)))
|
||||
}
|
||||
|
||||
pub fn from_u128(v: u128) -> Value {
|
||||
// TODO: fix precision loss
|
||||
Value::Number(Number(OrderedFloat(v as f64)))
|
||||
}
|
||||
|
||||
pub fn from_array(a: Vec<Value>) -> Value {
|
||||
Value::Array(Rc::new(a))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user