fixes pointer signedness