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
Родитель 3efeeb5c5b
Коммит ad4a379d52
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);