From d737a6e68909eebab09eb5e1c395c48e0f75c12b Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Fri, 14 Aug 2009 11:09:59 -0700 Subject: [PATCH] Bug 510449 - Bug 493457 causes crash on x64 windows build because JSSLOT_CLASS_MASK_BITS is uint32. r=jwalden --- js/src/jsobj.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/src/jsobj.h b/js/src/jsobj.h index 39c221377e9f..6885201133f0 100644 --- a/js/src/jsobj.h +++ b/js/src/jsobj.h @@ -97,7 +97,7 @@ const uint32 JSSLOT_PROTO = 0; const uint32 JSSLOT_PARENT = 1; const uint32 JSSLOT_PRIVATE = 2; -const uint32 JSSLOT_CLASS_MASK_BITS = 3; +const uintptr_t JSSLOT_CLASS_MASK_BITS = 3; /* * JSObject struct, with members sized to fit in 32 bytes on 32-bit targets, @@ -290,8 +290,6 @@ struct JSObject { * flags in the two least significant bits. We do *not* synchronize updates of * obj->classword -- API clients must take care. */ -#define JSSLOT_CLASS_MASK_BITS 3 - JS_ALWAYS_INLINE JSClass* STOBJ_GET_CLASS(const JSObject* obj) {