Ignore:
Timestamp:
Jun 24, 2014, 12:49:25 PM (11 years ago)
Author:
Brent Fulgham
Message:

[Win] MSVC mishandles enums in bitfields
https://bugs.webkit.org/show_bug.cgi?id=134237

Reviewed by Michael Saboff.

Replace uses of enum types in bit fields with unsigned to
avoid losing a bit to hold the sign value. This can result
in Windows interpreting the value of the field improperly.

../JavaScriptCore:

  • bytecode/StructureStubInfo.h:
  • parser/Nodes.h:

../WebCore:

  • loader/ResourceLoaderOptions.h:
  • platform/network/ResourceRequestBase.h:
  • platform/network/cf/ResourceResponse.h:
  • rendering/RenderLayer.h:
  • rendering/RenderMarquee.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Nodes.h

    r168107 r170381  
    10411041        ExpressionNode* m_subscript;
    10421042        ExpressionNode* m_right;
    1043         Operator m_operator : 30;
     1043        unsigned m_operator : 30;
    10441044        bool m_subscriptHasAssignments : 1;
    10451045        bool m_rightHasAssignments : 1;
     
    10831083        const Identifier& m_ident;
    10841084        ExpressionNode* m_right;
    1085         Operator m_operator : 31;
     1085        unsigned m_operator : 31;
    10861086        bool m_rightHasAssignments : 1;
    10871087    };
Note: See TracChangeset for help on using the changeset viewer.