Fixed warnings (comparison between pointer and integer)