[Mesa-dev] [Bug 80888] New: draw_cliptest_tmp.h computes zero/zero It is better to use NAN macro

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 3 22:50:11 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=80888

          Priority: medium
            Bug ID: 80888
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: draw_cliptest_tmp.h computes zero/zero It is better to
                    use NAN macro
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: zeccav at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 10.2
         Component: Other
           Product: Mesa

draw_cliptest_tmp.h:180
"position[3] = zero / zero; /* MSVC doesn't accept 0.0 / 0.0 */"
is wrong in my opinion.
The NAN macro from math.h should be used instead
"position[3] = NAN;"
see man NAN.
I believe zero/zero is against any programming language standard that I know.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140704/6749f1c3/attachment-0001.html>


More information about the mesa-dev mailing list