disallow subtraction/negation of error

This commit is contained in:
Jeff Wang 2019-10-21 02:31:18 -04:00
parent c05a402b72
commit 581a8e26f1

View File

@ -406,6 +406,9 @@ void negate_decn(dec80* x){
#else #else
static const exp_t xor_val = -(0x7f) - 1; static const exp_t xor_val = -(0x7f) - 1;
#endif #endif
if (decn_is_nan(x)){
return;
}
(x->exponent) ^= xor_val; (x->exponent) ^= xor_val;
} }