Skip to content

Commit a90cbb9

Browse files
committed
Fix order of constructor arguments in VariableNameAndType.from_identifier and .from_core_variable
1 parent 42bb393 commit a90cbb9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,11 +713,11 @@ class VariableNameAndType(CoreVariable):
713713
@classmethod
714714
def from_identifier(cls, identifier, name, type):
715715
var = core.BNFromVariableIdentifier(identifier)
716-
return cls(name, type, var.type, var.index, var.storage)
716+
return cls(var.type, var.index, var.storage, name, type)
717717

718718
@classmethod
719719
def from_core_variable(cls, var, name, type):
720-
return cls(name, type, var.type, var.index, var.storage)
720+
return cls(var.type, var.index, var.storage, name, type)
721721

722722

723723
class Variable(CoreVariable):

0 commit comments

Comments
 (0)