Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qdb bug fix missing function handle_bnj_arm #1483

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

ucgJhe
Copy link
Collaborator

@ucgJhe ucgJhe commented Jul 13, 2024

fix miss-handled funciton handle_bnj_arm

prophecy = self.Prophecy()
cur_addr = self.cur_addr
cur_addr = pref_addr or self.cur_addr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that the or operator will pick the latter not only when the former is None, but also when it is 0. If 0 is a valid value for pref_addr, then consider using:

cur_addr = self.cur_addr if pref_addr is None else pref_addr

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for the hint, i will correct this in the following fix for the issue

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ucgJhe please update the code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants