fix tmpd in copysign()