Skip to content

Commit ff04e7f

Browse files
committed
Fix analysis state properties to return enums instead of integers.
1 parent 05a6289 commit ff04e7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/binaryview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3381,12 +3381,12 @@ def analysis_info(self) -> AnalysisInfo:
33813381
def analysis_progress(self) -> AnalysisProgress:
33823382
"""Status of current analysis (read-only)"""
33833383
result = core.BNGetAnalysisProgress(self.handle)
3384-
return AnalysisProgress(result.state, result.count, result.total)
3384+
return AnalysisProgress(AnalysisState(result.state), result.count, result.total)
33853385

33863386
@property
33873387
def analysis_state(self) -> AnalysisState:
33883388
"""State of current analysis (read-only)"""
3389-
return core.BNGetAnalysisState(self.handle)
3389+
return AnalysisState(core.BNGetAnalysisState(self.handle))
33903390

33913391
@property
33923392
def linear_disassembly(self) -> Iterator['lineardisassembly.LinearDisassemblyLine']:

0 commit comments

Comments
 (0)