Compilation fix for 489899.

This commit is contained in:
Andreas Gal
2009-04-24 16:35:42 -07:00
parent 12220605f6
commit 488cb49aff
2 changed files with 3 additions and 3 deletions

View File

@@ -901,7 +901,7 @@ js_Array_dense_setelem(JSContext* cx, JSObject* obj, jsint i, jsval v)
* Let the interpreter worry about negative array indexes.
*/
JS_ASSERT((MAX_DSLOTS_LENGTH > JSVAL_INT_MAX) == (sizeof(jsval) != sizeof(uint32)));
if (MAX_DSLOTS_SIZE > JSVAL_INT_MAX) {
if (MAX_DSLOTS_LENGTH > JSVAL_INT_MAX) {
/*
* Have to check for negative values bleeding through on 64-bit machines only,
* since we can't allocate large enough arrays for this on 32-bit machines.