mirror of
https://github.com/outbackdingo/databunker.git
synced 2026-01-27 10:18:45 +00:00
parse float32 as int
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user