Commit 4d2fdd84 authored by barraclough@apple.com's avatar barraclough@apple.com

Build fix following https://bugs.webkit.org/show_bug.cgi?id=75935

Fix 32-bit builds.

* runtime/JSArray.cpp:
(JSC::JSArray::getOwnPropertyNames):
(JSC::JSArray::setLength):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 044eef7a
2012-01-10 Gavin Barraclough <barraclough@apple.com>
Build fix following https://bugs.webkit.org/show_bug.cgi?id=75935
Fix 32-bit builds.
* runtime/JSArray.cpp:
(JSC::JSArray::getOwnPropertyNames):
(JSC::JSArray::setLength):
2012-01-10 Gavin Barraclough <barraclough@apple.com>
Windows build fix.
......@@ -899,7 +899,7 @@ void JSArray::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNam
SparseArrayValueMap::const_iterator end = map->end();
for (SparseArrayValueMap::const_iterator it = map->begin(); it != end; ++it) {
if (mode == IncludeDontEnumProperties || !(it->second.attributes & DontEnum))
keys.append(it->first);
keys.append(static_cast<unsigned>(it->first));
}
qsort(keys.begin(), keys.size(), sizeof(unsigned), compareKeysForQSort);
......@@ -1114,7 +1114,7 @@ bool JSArray::setLength(ExecState* exec, unsigned newLength, bool throwException
keys.reserveCapacity(min(map->size(), static_cast<size_t>(length - newLength)));
SparseArrayValueMap::const_iterator end = map->end();
for (SparseArrayValueMap::const_iterator it = map->begin(); it != end; ++it) {
unsigned index = it->first;
unsigned index = static_cast<unsigned>(it->first);
if (index < length && index >= newLength)
keys.append(index);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment