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

Correct code_size function implementation #6304

Merged
merged 9 commits into from
Aug 5, 2024

Conversation

SwayStar123
Copy link
Collaborator

@SwayStar123 SwayStar123 commented Jul 27, 2024

Description

The current code_size function returns a pointer, rather than the value, this pr corrects this mistake.

Checklist

  • I have linked to any relevant issues.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation where relevant (API docs, the reference, and the Sway book).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@SwayStar123 SwayStar123 self-assigned this Jul 29, 2024
@SwayStar123 SwayStar123 added lib: std Standard library bug Something isn't working labels Jul 29, 2024
@SwayStar123 SwayStar123 marked this pull request as ready for review July 29, 2024 07:09
@SwayStar123 SwayStar123 requested review from a team as code owners July 29, 2024 07:09
@bitzoic bitzoic requested review from IGI-111 and a team July 31, 2024 06:12
Copy link
Member

@ironcev ironcev left a comment

Choose a reason for hiding this comment

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

LGTM. Perhaps only having a human readable constant with a comment instead of the magic number 576.

@IGI-111 IGI-111 enabled auto-merge (squash) August 5, 2024 08:25
@IGI-111 IGI-111 merged commit 68b7b34 into master Aug 5, 2024
34 checks passed
@IGI-111 IGI-111 deleted the code_size_return_value_not_ptr branch August 5, 2024 08:39
esdrubal pushed a commit that referenced this pull request Aug 13, 2024
## Description
The current code_size function returns a pointer, rather than the value,
this pr corrects this mistake.

## Checklist

- [x] I have linked to any relevant issues.
- [x] I have commented my code, particularly in hard-to-understand
areas.
- [x] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] If my change requires substantial documentation changes, I have
[requested support from the DevRel
team](https://github.com/FuelLabs/devrel-requests/issues/new/choose)
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.

---------

Co-authored-by: K1-R1 <[email protected]>
Co-authored-by: IGI-111 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lib: std Standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants