genutils: fix RoundIfGreaterThan