fix a pointer signedness issue