Actions
Bug #15491
closedr62701 introduced the incompatibility of Complex#+, #-, and #* removing #ifndef PRESERVE_SIGNEDZERO
Bug #15491:
r62701 introduced the incompatibility of Complex#+, #-, and #* removing #ifndef PRESERVE_SIGNEDZERO
ruby -v:
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
Description
In r62701, preprocessor conditions #ifndef PRESERVE_SIGNEDZERO in f_add, f_mul, and f_sub functions were removed.
These changes introduced the incompatibility for some special cases.
For example, the results of the following code shows the different sign of the imaginary part:
Moreover, the following code shows the different values in the real part:
Actions