diff --git a/tccgen.c b/tccgen.c index dd6a497a..305a082b 100644 --- a/tccgen.c +++ b/tccgen.c @@ -3478,7 +3478,7 @@ again: vtop->c.i = (vtop->c.ld != 0); } else { if(sf) - vtop->c.i = vtop->c.ld; + vtop->c.i = (int64_t)vtop->c.ld; else if (sbt_bt == VT_LLONG || (PTR_SIZE == 8 && sbt == VT_PTR)) ; else if (sbt & VT_UNSIGNED)