gcc: gcc 6.3.0 fix comparison between pointer and integer