Bug 330951: Patch from Pawel Chmielowski to fix a regression that I introduced in bug 311515.

This commit is contained in:
igor%mir2.org 2006-03-18 23:36:04 +00:00
parent a254e22506
commit cdc28d9089

View File

@ -1061,7 +1061,7 @@ array_sort(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
ca.fval = fval;
ca.localroot = argv + argc; /* local GC root for temporary string */
pivotroot = argv + argc + 1; /* local GC root for pivot val */
ok = js_HeapSort(vec, (size_t) len, pivotroot, sizeof(jsval),
ok = js_HeapSort(vec, (size_t) newlen, pivotroot, sizeof(jsval),
all_strings ? sort_compare_strings : sort_compare,
&ca);