Fix a signed / unsigned comparison warning with gcc