diff options
| author | Camille Mougey <commial@gmail.com> | 2018-06-20 17:33:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-20 17:33:23 +0200 |
| commit | 4c33cf22260fc2bc870de9f474e9043ddc1d6019 (patch) | |
| tree | c99cce3d47d225da1a86d9b80bdaebea7d8186f6 /miasm2/core/cpu.py | |
| parent | 8a2c80d3381a913235948a42625162fd11e97a46 (diff) | |
| parent | 3667e05bbd7f2ebb6aa856b99df9d7ffd0a18ca3 (diff) | |
| download | miasm-4c33cf22260fc2bc870de9f474e9043ddc1d6019.tar.gz miasm-4c33cf22260fc2bc870de9f474e9043ddc1d6019.zip | |
Merge pull request #773 from serpilliere/fix_bad_doc
Cpu: fix bad doc
Diffstat (limited to 'miasm2/core/cpu.py')
| -rw-r--r-- | miasm2/core/cpu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index a142ab77..80f81aff 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -1030,7 +1030,7 @@ class instruction(object): if name == '_': fixed_expr[exprloc] = self.get_asm_next_offset(exprloc) continue - if not name in symbols: + if symbols.getby_name(name) is None: raise ValueError('Unresolved symbol: %r' % exprloc) offset = symbols.loc_key_to_offset(loc_key) |