Use u32 for reserved slot indices.

This is what the JSAPI expects.
This commit is contained in:
Ms2ger 2015-02-20 14:39:11 +01:00
parent 03408d69fb
commit 21a1143dd1
2 changed files with 5 additions and 5 deletions

View file

@ -1855,7 +1855,7 @@ assert!(!obj.is_null());\
create += """\
assert!(!obj.is_null());
JS_SetReservedSlot(obj, DOM_OBJECT_SLOT as u32,
JS_SetReservedSlot(obj, DOM_OBJECT_SLOT,
PrivateValue(boxed::into_raw(object) as *const libc::c_void));"""
return create