Commit d26d14f7 by Richard Stallman

(real_value_truncate): Use push/pop_float_handler.

From-SVN: r2544
parent bff4b641
......@@ -777,16 +777,17 @@ real_value_truncate (mode, arg)
volatile
#endif
REAL_VALUE_TYPE value;
jmp_buf handler;
jmp_buf handler, old_handler;
int handled;
if (setjmp (handler))
{
error ("floating overflow");
return dconst0;
}
set_float_handler (handler);
handled = push_float_handler (handler, old_handler);
value = REAL_VALUE_TRUNCATE (mode, arg);
set_float_handler (NULL_PTR);
pop_float_handler (handled, old_handler);
return value;
}
......
Markdown is supported
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