Use uintptr_t instead of performing pointer subtraction with a null pointer