Commit f35117c9 authored by Matthias Braun's avatar Matthias Braun
Browse files

tv: fix float->int conversion problems

(they were introduced when moving value_classes out of the descriptor)
parent f44be6a4
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment