Unify integer types and simplify some code

This commit is contained in:
Rerumu
2022-04-22 21:57:43 -04:00
parent 233aee2c5e
commit e7b36a7d94
6 changed files with 101 additions and 90 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use wasm_ast::{
};
struct Visit {
result: BTreeSet<u8>,
result: BTreeSet<usize>,
}
impl Visitor for Visit {
@@ -27,7 +27,7 @@ impl Visitor for Visit {
}
}
pub fn visit(func: &Function) -> BTreeSet<u8> {
pub fn visit(func: &Function) -> BTreeSet<usize> {
let mut visit = Visit {
result: BTreeSet::new(),
};