Fixed: Unsigned/signed integers in hq2x algorithm

The reason I touched this in the first place was to resolve an
ambiguous abs() call on Windows; this seems the correct casting.