Commit c4361cd7 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

* real.c (do_divide): Initialize result with a 0.

From-SVN: r73066
parent a207b594
2003-10-29 Hans-Peter Nilsson <hp@axis.com> 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
* real.c (do_divide): Initialize result with a 0.
* configure.in <enable-checking for valgrind>: Look for * configure.in <enable-checking for valgrind>: Look for
<valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
if it exists. if it exists.
......
...@@ -858,6 +858,8 @@ do_divide (REAL_VALUE_TYPE *r, const REAL_VALUE_TYPE *a, ...@@ -858,6 +858,8 @@ do_divide (REAL_VALUE_TYPE *r, const REAL_VALUE_TYPE *a,
else else
rr = r; rr = r;
/* Make sure all fields in the result are initialized. */
get_zero (rr, 0);
rr->class = rvc_normal; rr->class = rvc_normal;
rr->sign = sign; rr->sign = sign;
......
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