Fixed 'warning: comparison between pointer and integer'