Changeset 59170 in webkit for trunk/JavaScriptCore
- Timestamp:
- May 11, 2010, 1:38:13 PM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r59161 r59170 1 2010-05-11 Geoffrey Garen <[email protected]> 2 3 Fixed test failures seen on SnowLeopard buildbot. 4 5 * runtime/JSString.cpp: 6 (JSC::JSString::replaceCharacter): Don't use size_t and wtf::notFound. 7 Instead, use the individual types and notFound values of the string APIs 8 we're using, since they're not necessarily the same in 64bit. 9 1 10 2010-05-11 Geoffrey Garen <[email protected]> 2 11 -
trunk/JavaScriptCore/runtime/JSString.cpp
r59161 r59170 108 108 { 109 109 if (!isRope()) { 110 size_tmatchPosition = m_value.find(character);111 if (matchPosition == notFound)110 unsigned matchPosition = m_value.find(character); 111 if (matchPosition == UString::NotFound) 112 112 return JSValue(this); 113 113 return jsString(exec, m_value.substr(0, matchPosition), replacement, m_value.substr(matchPosition + 1)); … … 119 119 size_t fiberCount = 0; 120 120 UStringImpl* matchString = 0; 121 size_t matchPosition = notFound;121 int matchPosition = -1; 122 122 for (RopeIterator it(m_other.m_fibers, m_fiberCount); it != end; ++it) { 123 123 ++fiberCount; … … 127 127 UStringImpl* string = *it; 128 128 matchPosition = string->find(character); 129 if (matchPosition == notFound)129 if (matchPosition == -1) 130 130 continue; 131 131 matchString = string;
Note:
See TracChangeset
for help on using the changeset viewer.