Fix 'pointer targets differ in signedness' warning