fix unsigned warning in impl/num_gmp.h