Skip to content

Commit

Permalink
fix: handle U16 to Expr
Browse files Browse the repository at this point in the history
  • Loading branch information
devgony committed Nov 8, 2022
1 parent 2f14d28 commit 2293efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/data/value/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ impl TryFrom<Value> for Expr {
Value::U8(v) => Expr::Literal(AstLiteral::Number(
BigDecimal::from_u8(v).ok_or(ValueToExprConversionFailure)?,
)),
Value::U16(v) => Expr::Literal(AstLiteral::Number(
BigDecimal::from_u16(v).ok_or(ValueToExprConversionFailure)?,
)),

Value::F64(v) => Expr::Literal(AstLiteral::Number(
BigDecimal::from_f64(v).ok_or(ValueToExprConversionFailure)?,
)),
Expand Down

0 comments on commit 2293efc

Please sign in to comment.