Bug 677993: Add a cast to fix 'cast to pointer from integer of different size' gcc warning in jsobjinlines.h r=bhackett

This commit is contained in:
Daniel Holbert 2011-08-11 11:15:08 -07:00
parent 601147abfd
commit 68b46f5f7e

View File

@ -350,7 +350,7 @@ inline void
JSObject::setArrayLength(uint32 length)
{
JS_ASSERT(isArray());
setPrivate((void*) length);
setPrivate((void*)(size_t)length);
}
inline uint32