-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
[Merged by Bors] - fix(vm): off-by-one in code block stringification. #1999
Conversation
The call to retrieve operands modifies pc, setting it to the index of the *next* instruction. So, we save its initial value and use that for printing. Acked-by: Taylor Sutton <tsutton125@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #1999 +/- ##
==========================================
- Coverage 45.90% 45.90% -0.01%
==========================================
Files 206 206
Lines 17148 17148
==========================================
- Hits 7872 7871 -1
- Misses 9276 9277 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find, thank you for the contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bors r+ |
Acked-by: Taylor Sutton <tsutton125@gmail.com> This Pull Request fixes/closes #1998 The call to retrieve operands modifies pc, setting it to the index of the *next* instruction. So, we save its initial value and use that for printing.
Pull request successfully merged into main. Build succeeded: |
Acked-by: Taylor Sutton <tsutton125@gmail.com> This Pull Request fixes/closes #1998 The call to retrieve operands modifies pc, setting it to the index of the *next* instruction. So, we save its initial value and use that for printing.
Acked-by: Taylor Sutton tsutton125@gmail.com
This Pull Request fixes/closes #1998
The call to retrieve operands modifies pc, setting it to the index of
the next instruction. So, we save its initial value and use that
for printing.