diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-01-21 16:05:32 +0100 |
|---|---|---|
| committer | serpilliere <fabrice.desclaux@cea.fr> | 2016-01-21 18:17:35 +0100 |
| commit | 2df43b1d5a10ab0c883aa440bd1f68141fdfb651 (patch) | |
| tree | a5c8d72b9b1cff194f5aa6867d22619a79a68b70 /miasm2/core/asmbloc.py | |
| parent | d49e05f1aef8da814fa7bfc1b99e7051e51db0b0 (diff) | |
| download | miasm-2df43b1d5a10ab0c883aa440bd1f68141fdfb651.tar.gz miasm-2df43b1d5a10ab0c883aa440bd1f68141fdfb651.zip | |
Asmbloc: Fix asmbloc label (creds @commial)
Diffstat (limited to 'miasm2/core/asmbloc.py')
| -rw-r--r-- | miasm2/core/asmbloc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py index a6d652be..7089e888 100644 --- a/miasm2/core/asmbloc.py +++ b/miasm2/core/asmbloc.py @@ -103,7 +103,8 @@ class asm_constraint_to(asm_constraint): class asm_bloc(object): - def __init__(self, label=None, alignment=1): + def __init__(self, label, alignment=1): + assert isinstance(label, asm_label) self.bto = set() self.lines = [] self.label = label |