Try to fix redness on one Mac tinderbox, r=red

--HG--
extra : rebase_source : cfaeae4518917131658367f4d9f7c98cf829f767
This commit is contained in:
Jeff Walden 2009-09-22 16:46:13 -07:00
parent ccc6ad4904
commit 3b1976c31a

View File

@ -41,6 +41,8 @@
/*
* JS object implementation.
*/
#define __STDC_LIMIT_MACROS
#include <stdlib.h>
#include <string.h>
#include "jstypes.h"
@ -71,6 +73,7 @@
#include "jsscript.h"
#include "jsscriptinlines.h"
#include "jsstaticcheck.h"
#include "jsstdint.h"
#include "jsstr.h"
#include "jstracer.h"
#include "jsdbgapi.h"
@ -2065,7 +2068,8 @@ obj_keys(JSContext *cx, uintN argc, jsval *vp)
return JS_FALSE;
vp[1] = OBJECT_TO_JSVAL(proto);
JSObject *aobj = js_NewArrayWithSlots(cx, proto, ida.length());
JS_ASSERT(ida.length() <= UINT32_MAX);
JSObject *aobj = js_NewArrayWithSlots(cx, proto, uint32(ida.length()));
if (!aobj)
return JS_FALSE;
*vp = OBJECT_TO_JSVAL(aobj);