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

native: fix convert_int_to_string, add comments, more verbose #23743

Merged
merged 10 commits into from
Feb 17, 2025

Conversation

Eliyaan
Copy link
Contributor

@Eliyaan Eliyaan commented Feb 16, 2025

Adds comments to help understanding the code.
Adds more c.g.println calls to have an easier time in verbose native mode.
Fixes the new test by terminating the buffer used in convert_int_to_string with \0 because it is assumed after when reversing it and when priting it (it tries to find it's lenght by searching \0). (I did not know how to name my test function.)
Adds CLD when reversing the string to prevent the case where DF would be set and REPNE SCAS would do the opposite of what is expected.

Copy link

Connected to Huly®: V_0.6-22158

@Eliyaan Eliyaan marked this pull request as draft February 16, 2025 19:20
@Eliyaan
Copy link
Contributor Author

Eliyaan commented Feb 16, 2025

I fixed something but did not commit it yet

@Eliyaan Eliyaan marked this pull request as ready for review February 16, 2025 19:57
@Delta456 Delta456 requested a review from Spydr06 February 16, 2025 21:10
@Eliyaan
Copy link
Contributor Author

Eliyaan commented Feb 16, 2025

I dont think spydr is the good person to review this PR as he is busy and not working on this backend anymore.

Copy link
Contributor

@JalonSolov JalonSolov left a comment

Choose a reason for hiding this comment

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

All tests run fine here. Changes seem simple enough.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit 6534616 into vlang:master Feb 17, 2025
64 checks passed
@Eliyaan Eliyaan deleted the tests-native branch February 17, 2025 09:29
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.

3 participants