Fix warning: comparison between pointer and integer