Changeset 94256 in webkit for trunk/Source/JavaScriptCore/wtf/CheckedArithmetic.h
- Timestamp:
- Aug 31, 2011, 5:28:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/CheckedArithmetic.h
r94207 r94256 447 447 if (!isInBounds<T>(rhs.m_value)) 448 448 this->overflowed(); 449 m_value = rhs.m_value;449 m_value = static_cast<T>(rhs.m_value); 450 450 } 451 451 … … 456 456 if (!isInBounds<T>(rhs.m_value)) 457 457 this->overflowed(); 458 m_value = rhs.m_value;458 m_value = static_cast<T>(rhs.m_value); 459 459 } 460 460 … … 464 464 if (rhs.hasOverflowed()) 465 465 this->overflowed(); 466 m_value = rhs.m_value;466 m_value = static_cast<T>(rhs.m_value); 467 467 return *this; 468 468 }
Note:
See TracChangeset
for help on using the changeset viewer.