[Webkit-unassigned] [Bug 130403] New: Visual Studio 2013 complains about implicit casts of uint8_t enums to bool

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 18 10:07:13 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=130403

           Summary: Visual Studio 2013 complains about implicit casts of
                    uint8_t enums to bool
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bburg at apple.com
                CC: ddkilzer at webkit.org, bfulgham at webkit.org


Not sure if this is undefined behavior or if its an MSVC bug, but it sure does spam the build output.


At JSCell.h:156:
    void setRemembered(bool remembered)
    {
        ASSERT(m_gcData == remembered ? Marked : MarkedAndRemembered);

given the following definition

    enum GCData : uint8_t {
        Marked = 0,
        NotMarked = 1,
        MarkedAndRemembered = 2,
    };

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list