From 4eacda02dd2131c0eecc97a38d69f0daf34e4f48 Mon Sep 17 00:00:00 2001 From: andig Date: Fri, 8 Oct 2021 10:47:15 +0200 Subject: [PATCH] fix: uint<0 comparisons (#421) Remove impossible conditions for uint comparisons. --- value_number.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/value_number.go b/value_number.go index b85760a..1c1d2c2 100644 --- a/value_number.go +++ b/value_number.go @@ -331,24 +331,18 @@ func toIntSign(value Value) int { case uint8: if uint8(value) > 0 { return 1 - } else if uint8(value) < 0 { - return -1 } return 0 case uint16: if uint16(value) > 0 { return 1 - } else if uint16(value) < 0 { - return -1 } return 0 case uint32: if uint32(value) > 0 { return 1 - } else if uint32(value) < 0 { - return -1 } return 0