fix: uint<0 comparisons (#421)

Remove impossible conditions for uint comparisons.
This commit is contained in:
andig
2021-10-08 10:47:15 +02:00
committed by GitHub
parent 12a6322603
commit 4eacda02dd

View File

@@ -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