Qpid
  1. Qpid
  2. QPID-4531

Variant.cpp cast of -0 failing with older GCC

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21
    • Component/s: C++ Broker
    • Labels:
      None

      Description

      Cast of negative zero to a signed type is throwing with GCC 4.1.2, but not with GCC 4.4.6 .

      This causes a failure in unit tests.

        Activity

        Hide
        Chuck Rolke added a comment -

        Visual Studio 2010 complains twice:
        warning C4146: unary minus operator applied to unsigned type, result still unsigned D:\svn\Phase7\qpid\cpp\src\qpid\types\Variant.cpp 125

        Build still completes ok.

        Show
        Chuck Rolke added a comment - Visual Studio 2010 complains twice: warning C4146: unary minus operator applied to unsigned type, result still unsigned D:\svn\Phase7\qpid\cpp\src\qpid\types\Variant.cpp 125 Build still completes ok.
        Hide
        michael goulish added a comment -

        rev 1431548 from astitcher.

        Show
        michael goulish added a comment - rev 1431548 from astitcher.

          People

          • Assignee:
            michael goulish
            Reporter:
            michael goulish
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development