summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGalen Williamson <galen@vector35.com>2025-05-05 13:06:07 -0400
committerGalen Williamson <galen@vector35.com>2025-05-05 13:06:07 -0400
commita90cbb9ff5195b8ccc354610c17d892e84024fe5 (patch)
tree7d0b17f2aebf682617c56782ce4d72b791b6581f /python
parent42bb3938df78686b6d1ceae003ce8c149f8dc9d8 (diff)
Fix order of constructor arguments in VariableNameAndType.from_identifier and .from_core_variable
Diffstat (limited to 'python')
-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):