Changeset 94460 in webkit for trunk/Source/JavaScriptCore/wtf
- Timestamp:
- Sep 2, 2011, 4:25:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/CheckedArithmetic.h
r94256 r94460 624 624 V y = 0; 625 625 bool overflowed = lhs.safeGet(x) || rhs.safeGet(y); 626 typename Result<U, V>::ResultType result ;626 typename Result<U, V>::ResultType result = 0; 627 627 overflowed |= !safeAdd(x, y, result); 628 628 if (overflowed) … … 636 636 V y = 0; 637 637 bool overflowed = lhs.safeGet(x) || rhs.safeGet(y); 638 typename Result<U, V>::ResultType result ;638 typename Result<U, V>::ResultType result = 0; 639 639 overflowed |= !safeSub(x, y, result); 640 640 if (overflowed) … … 648 648 V y = 0; 649 649 bool overflowed = lhs.safeGet(x) || rhs.safeGet(y); 650 typename Result<U, V>::ResultType result ;650 typename Result<U, V>::ResultType result = 0; 651 651 overflowed |= !safeMultiply(x, y, result); 652 652 if (overflowed)
Note:
See TracChangeset
for help on using the changeset viewer.