Return usize from IDLInterface::get_prototype_depth.

It is used as an index into an array.
This commit is contained in:
Ms2ger 2015-02-20 14:41:16 +01:00
parent c84dfa0f1d
commit a3fedee46e
2 changed files with 2 additions and 2 deletions

View file

@ -1923,7 +1923,7 @@ impl IDLInterface for ${type} {
fn get_prototype_id() -> PrototypeList::ID { fn get_prototype_id() -> PrototypeList::ID {
PrototypeList::ID::${type} PrototypeList::ID::${type}
} }
fn get_prototype_depth() -> uint { fn get_prototype_depth() -> usize {
${depth} ${depth}
} }
} }

View file

@ -62,7 +62,7 @@ pub trait IDLInterface {
fn get_prototype_id() -> PrototypeList::ID; fn get_prototype_id() -> PrototypeList::ID;
/// Returns the prototype depth, i.e., the number of interfaces this /// Returns the prototype depth, i.e., the number of interfaces this
/// interface inherits from. /// interface inherits from.
fn get_prototype_depth() -> uint; fn get_prototype_depth() -> usize;
} }
/// A trait to convert Rust types to `JSVal`s. /// A trait to convert Rust types to `JSVal`s.