Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
fix(navm): allow longer function name
Browse files Browse the repository at this point in the history
  • Loading branch information
lynzrand committed Dec 7, 2020
1 parent d865d99 commit a6b4b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/r0vm/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ impl<'src> R0Vm<'src> {
let name = asm
.globals
.get(f.name as usize)
.ok_or_else(|| Error::InvalidGlobalIndex(f.name))?;
.ok_or(Error::InvalidGlobalIndex(f.name))?;
let name = String::from_utf8_lossy(&name.bytes);
let name = SmolStr::new_inline(&name);
let name = SmolStr::new(&name);
res.insert(name, idx as u32);
}
Ok(res)
Expand Down

0 comments on commit a6b4b24

Please sign in to comment.