diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-02-09 18:13:24 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-02-09 18:13:24 +0100 |
| commit | 275b8d25aacd639a0512f54e99f9fa247ecb8bb3 (patch) | |
| tree | 669a16a156874aa97ed27fd14a18130b9ea5ae16 /miasm2/expression/expression.py | |
| parent | c2e52be18ddd2eeb86b413e851a3ade0ceeca1dc (diff) | |
| download | miasm-275b8d25aacd639a0512f54e99f9fa247ecb8bb3.tar.gz miasm-275b8d25aacd639a0512f54e99f9fa247ecb8bb3.zip | |
Expression: no default size for ExprId
Diffstat (limited to 'miasm2/expression/expression.py')
| -rw-r--r-- | miasm2/expression/expression.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/miasm2/expression/expression.py b/miasm2/expression/expression.py index 6b189c4d..a72c1ec4 100644 --- a/miasm2/expression/expression.py +++ b/miasm2/expression/expression.py @@ -525,11 +525,14 @@ class ExprId(Expr): __slots__ = Expr.__slots__ + ["_name"] - def __init__(self, name, size=32): + def __init__(self, name, size=None): """Create an identifier @name: str, identifier's name @size: int, identifier's size """ + if size is None: + warnings.warn('DEPRECATION WARNING: size is a mandatory argument: use ExprId(name, SIZE)') + size = 32 super(ExprId, self).__init__(size) self._name = name |