fix cmp_int32 function overflow problem