Bug 130403

Summary: Visual Studio 2013 complains about implicit casts of uint8_t enums to bool
Product: WebKit Reporter: BJ Burg <bburg>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, ddkilzer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Windows 7   

Description BJ Burg 2014-03-18 10:07:31 PDT
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,
    };
Comment 1 Brent Fulgham 2016-03-22 13:36:02 PDT
I don't see this anymore now that we are on VS2015.