octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a < b incorrect for complex numbers on MinGW


From: Michael Goffioul
Subject: Re: a < b incorrect for complex numbers on MinGW
Date: Tue, 12 Nov 2013 20:51:18 -0500

On Tue, Nov 12, 2013 at 8:17 PM, Rik <address@hidden> wrote:
I found the following behavior while investigating a failing test in quadgk.

octave-cli.exe:9> a = 1 + 1i;
octave-cli.exe:10> b = 1 + 1i;
octave-cli.exe:11> a < b
ans =  1
octave-cli.exe:12> a == b
ans =  1
octave-cli.exe:13> a > b
ans = 0

a < b should return false, and it does on Linux, but something is wrong
with the MinGW system.  This looks unpleasant to solve.  I filed a report
about it on Savannah (https://savannah.gnu.org/bugs/index.php?40560).

I knew this rang a bell to me, though in the MSVC context. Here's the link:
http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00095.html
I'm not saying the problem is identical, but  just tried in my MSVC-compiled octave-3.7.7 and I get the same result as above. Tomorrow, I'll recompile with -fp:strict compile flag (I used to do that in my own compilation scripts, before I switched to MXE).

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]