[arm] a better fix for 211c109 - memory trashing due to unsigned/signed int comparison