use slightly better names in indexing functions

This commit is contained in:
Mark Thom
2020-04-30 18:20:42 -06:00
parent b6df5a4b7f
commit efd5d6efab
3 changed files with 5 additions and 5 deletions

View File

@@ -1433,7 +1433,7 @@ impl MachineState {
let addr = self.store(self.deref(addr));
let offset =
match addr.as_constant(&self) {
match addr.as_constant_index(&self) {
Some(c) => {
match hm.get(&c) {
Some(offset) => *offset,