fix pointer comparison compile error in c++