summaryrefslogtreecommitdiff
path: root/python/variable.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/variable.py')
-rw-r--r--python/variable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/variable.py b/python/variable.py
index 2c57bac9..e8e55d90 100644
--- a/python/variable.py
+++ b/python/variable.py
@@ -713,11 +713,11 @@ class VariableNameAndType(CoreVariable):
@classmethod
def from_identifier(cls, identifier, name, type):
var = core.BNFromVariableIdentifier(identifier)
- return cls(name, type, var.type, var.index, var.storage)
+ return cls(var.type, var.index, var.storage, name, type)
@classmethod
def from_core_variable(cls, var, name, type):
- return cls(name, type, var.type, var.index, var.storage)
+ return cls(var.type, var.index, var.storage, name, type)
class Variable(CoreVariable):