fix(compare): support int64

relates to #3309
This commit is contained in:
Jan De Dobbeleer 2023-09-09 20:32:27 +02:00 committed by Jan De Dobbeleer
parent 346091feb8
commit 0b0111fe2a

View file

@ -30,6 +30,9 @@ func gt(e1, e2 interface{}) bool {
if val, OK := e1.(int); OK {
return val > interFaceToInt(e2)
}
if val, OK := e1.(int64); OK {
return val > int64(interFaceToInt(e2))
}
if val, OK := e1.(float64); OK {
return val > interfaceToFloat64(e2)
}