From f35117c9cdcf05135c3a0f3be6f4d0861237907b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 2 Nov 2011 19:47:47 +0100 Subject: [PATCH] tv: fix float->int conversion problems (they were introduced when moving value_classes out of the descriptor) --- ir/tv/fltcalc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index 2d9d9ece0..15d91a058 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -787,8 +787,10 @@ static void _trunc(const fp_value *a, fp_value *result) temp = (char*) alloca(value_size); - if (a != result) + if (a != result) { result->desc = a->desc; + result->clss = a->clss; + } exp_bias = (1 << (a->desc.exponent_size - 1)) - 1; exp_val = sc_val_to_long(_exp(a)) - exp_bias; -- 2.20.1