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

khepri_fun: Fix translation for bs_get_float2 #170

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

the-mikedavis
Copy link
Member

The resolution for bs_get_float2 in beam_disasm is in the same block and has the same body as the translations for bs_get_integer2 and bs_get_binary2 so it has the same mistranslations and can be fixed in the same way.

We can provoke a {test,bs_get_float2,..} instruction by pattern matching on a bitstring that uses the float type specifier.

The resolution for `bs_get_float2` in `beam_disasm` is in the same
block and has the same body as the translations for `bs_get_integer2`
and `bs_get_binary2` so it has the same mistranslations and can be
fixed in the same way.

We can provoke a `{test,bs_get_float2,..}` instruction by pattern
matching on a bitstring that uses the `float` type specifier.
@the-mikedavis the-mikedavis added the bug Something isn't working label Nov 10, 2022
@the-mikedavis the-mikedavis self-assigned this Nov 10, 2022
@codecov
Copy link

codecov bot commented Nov 10, 2022

Codecov Report

Base: 90.67% // Head: 90.76% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (819ee4e) compared to base (9567bf1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
+ Coverage   90.67%   90.76%   +0.08%     
==========================================
  Files          19       19              
  Lines        3377     3377              
==========================================
+ Hits         3062     3065       +3     
+ Misses        315      312       -3     
Flag Coverage Δ
erlang-24 89.39% <ø> (+0.05%) ⬆️
erlang-25 89.66% <ø> (+0.08%) ⬆️
os-ubuntu-latest 90.58% <ø> (-0.03%) ⬇️
os-windows-latest 89.36% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/khepri_fun.erl 93.41% <ø> (ø)
src/khepri_machine.erl 94.67% <0.00%> (+0.39%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

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

Thanks!

@dumbbell dumbbell added this to the v0.6.0 milestone Nov 11, 2022
@dumbbell dumbbell merged commit a8a83ef into rabbitmq:main Nov 11, 2022
@the-mikedavis the-mikedavis deleted the md-bs-get-float2 branch November 11, 2022 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants