sm501: unsigned ptr cannot be negative