Make GetProtoOrIfaceArray return the actual type.

This commit is contained in:
Ms2ger 2014-05-26 20:19:38 +02:00
parent 1834855ff5
commit 51d2891c9b
2 changed files with 3 additions and 3 deletions

View file

@ -206,10 +206,10 @@ pub struct DOMJSClass {
pub dom_class: DOMClass
}
pub fn GetProtoOrIfaceArray(global: *mut JSObject) -> **mut JSObject {
pub fn GetProtoOrIfaceArray(global: *mut JSObject) -> *mut *mut JSObject {
unsafe {
assert!(((*JS_GetClass(global)).flags & JSCLASS_DOM_GLOBAL) != 0);
JS_GetReservedSlot(global, DOM_PROTOTYPE_SLOT).to_private() as **mut JSObject
JS_GetReservedSlot(global, DOM_PROTOTYPE_SLOT).to_private() as *mut *mut JSObject
}
}