From 0b0111fe2a8c38cc12229700246ec077ff8706c5 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sat, 9 Sep 2023 20:32:27 +0200 Subject: [PATCH] fix(compare): support int64 relates to #3309 --- src/template/compare.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/template/compare.go b/src/template/compare.go index 5a69a112..52462f01 100644 --- a/src/template/compare.go +++ b/src/template/compare.go @@ -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) }