xpc: fixed overflow bug for toint(set32)