modernization: fix sign-extended issue with ptr / unsigned long long