[IOT-2539] Clean sign-compare warnings