Fixing compiler warning about signedness

I know you have fixed this on `develop` but please put this fix on `master` to stop compiler warnings.