Skip to content

Commit 772ebba

Browse files
rohitjangidsparkprime
authored andcommitted
Add support to return int based value from native functions golang implementations
1 parent 4df8c17 commit 772ebba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interpreter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,8 @@ func jsonToValue(i *interpreter, v interface{}) (value, error) {
949949

950950
case bool:
951951
return makeValueBoolean(v), nil
952+
case int, int8, int16, int32, int64:
953+
return makeDoubleCheck(i, v.(float64))
952954
case float64:
953955
return makeDoubleCheck(i, v)
954956

0 commit comments

Comments
 (0)