Patch for signedness from Jose G. Lopez.

Patch from the Debian maintainer for fixing signedness warnings.

Reviewed by Shlomi Fish.