Ignore:
Timestamp:
Aug 31, 2011, 5:28:50 PM (14 years ago)
Author:
[email protected]
Message:

Fix build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/CheckedArithmetic.h

    r94207 r94256  
    447447        if (!isInBounds<T>(rhs.m_value))
    448448            this->overflowed();
    449         m_value = rhs.m_value;
     449        m_value = static_cast<T>(rhs.m_value);
    450450    }
    451451   
     
    456456        if (!isInBounds<T>(rhs.m_value))
    457457            this->overflowed();
    458         m_value = rhs.m_value;
     458        m_value = static_cast<T>(rhs.m_value);
    459459    }
    460460   
     
    464464        if (rhs.hasOverflowed())
    465465            this->overflowed();
    466         m_value = rhs.m_value;
     466        m_value = static_cast<T>(rhs.m_value);
    467467        return *this;
    468468    }
Note: See TracChangeset for help on using the changeset viewer.