From 36525b7ee9a8ee3eb95a8ba5ec490c05874bde8d Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 31 May 2017 15:52:17 -0400 Subject: Make branches types always use the enumeration not the name --- python/architecture.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python') diff --git a/python/architecture.py b/python/architecture.py index 34f2ca35..504f67ce 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -1128,13 +1128,12 @@ class Architecture(object): result.length = info.length result.branch_delay = info.branchDelay for i in xrange(0, info.branchCount): - branch_type = BranchType(info.branchType[i]).name target = info.branchTarget[i] if info.branchArch[i]: arch = Architecture(info.branchArch[i]) else: arch = None - result.add_branch(branch_type, target, arch) + result.add_branch(BranchType(info.branchType[i]), target, arch) return result def get_instruction_text(self, data, addr): -- cgit v1.3.1