Skip to content

Commit

Permalink
Add support to return int based value from native functions golang im…
Browse files Browse the repository at this point in the history
…plementations
  • Loading branch information
rohitjangid authored and sparkprime committed Apr 13, 2023
1 parent 4df8c17 commit 772ebba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,8 @@ func jsonToValue(i *interpreter, v interface{}) (value, error) {

case bool:
return makeValueBoolean(v), nil
case int, int8, int16, int32, int64:
return makeDoubleCheck(i, v.(float64))
case float64:
return makeDoubleCheck(i, v)

Expand Down

0 comments on commit 772ebba

Please sign in to comment.