Skip to content

Commit

Permalink
parse float32 as int
Browse files Browse the repository at this point in the history
  • Loading branch information
stremovsky committed Dec 21, 2024
1 parent b5e2818 commit 56f404c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func getIntValue(r interface{}) int {
return r.(int)
case int32:
return int(r.(int32))
case float64:
return int(r.(float64))
}
return 0
}
Expand Down

0 comments on commit 56f404c

Please sign in to comment.