mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 21:39:41 +08:00
fix: converInt function bug
Change-Id: Ifb364a943351f3762f5784fb8d84d9eb385a383f
This commit is contained in:
@@ -186,6 +186,10 @@ func convertInt(value interface{}) (int, error) {
|
||||
return int(v), nil
|
||||
case uint64:
|
||||
return int(v), nil
|
||||
case float32:
|
||||
return int(v), nil
|
||||
case float64:
|
||||
return int(v), nil
|
||||
default:
|
||||
return 0, fmt.Errorf("unsupported int convertion for %v(%T)", v, v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user