remove unused constant
remove -1 to 64 bit unsigned conversion
do not cast -1 to pointer