(check_float_value): Cast args of bcopy to avoid warnings.

From-SVN: r11860
This commit is contained in:
Richard Kenner 1996-04-21 08:42:05 -04:00
parent d42d380a16
commit acbdd7dd67

View File

@ -2270,27 +2270,29 @@ check_float_value (mode, d, overflow)
{
REAL_VALUE_TYPE r;
bcopy (d, &r, sizeof (REAL_VALUE_TYPE));
bcopy ((char *) d, (char *) &r, sizeof (REAL_VALUE_TYPE));
if (REAL_VALUES_LESS (float_values[0], r))
{
bcopy (&float_values[0], d, sizeof (REAL_VALUE_TYPE));
bcopy ((char *) &float_values[0], (char *) d,
sizeof (REAL_VALUE_TYPE));
return 1;
}
else if (REAL_VALUES_LESS (r, float_values[1]))
{
bcopy (&float_values[1], d, sizeof (REAL_VALUE_TYPE));
bcopy ((char *) &float_values[1], (char *) d,
sizeof (REAL_VALUE_TYPE));
return 1;
}
else if (REAL_VALUES_LESS (dconst0, r)
&& REAL_VALUES_LESS (r, float_values[2]))
{
bcopy (&dconst0, d, sizeof (REAL_VALUE_TYPE));
bcopy ((char *) &dconst0, (char *) d, sizeof (REAL_VALUE_TYPE));
return 1;
}
else if (REAL_VALUES_LESS (r, dconst0)
&& REAL_VALUES_LESS (float_values[3], r))
{
bcopy (&dconst0, d, sizeof (REAL_VALUE_TYPE));
bcopy ((char *) &dconst0, (char *) d, sizeof (REAL_VALUE_TYPE));
return 1;
}
}