mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-25 11:27:57 +00:00
fix also bug with externalizer
This commit is contained in:
+2
-2
@@ -256,11 +256,11 @@ pub struct Set {
|
||||
}
|
||||
|
||||
impl Set {
|
||||
fn new(entries: HashMap<InstructionType, u32>) -> Self {
|
||||
pub fn new(entries: HashMap<InstructionType, u32>) -> Self {
|
||||
Set { entries: entries }
|
||||
}
|
||||
|
||||
fn process(&self, opcode: &elements::Opcode) -> u32 {
|
||||
pub fn process(&self, opcode: &elements::Opcode) -> u32 {
|
||||
self.entries.get(&InstructionType::op(opcode)).map(|x| *x).unwrap_or(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user