Skip to content

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

Merged
spytheman merged 10 commits into
vlang:masterfrom
Eliyaan:tests-native
Feb 17, 2025
Merged

native: fix convert_int_to_string, add comments, more verbose#23743
spytheman merged 10 commits into
vlang:masterfrom
Eliyaan:tests-native

Conversation

@Eliyaan

@Eliyaan Eliyaan commented Feb 16, 2025

Copy link
Copy Markdown
Member

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.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22158

@Eliyaan Eliyaan marked this pull request as draft February 16, 2025 19:20
@Eliyaan

Eliyaan commented Feb 16, 2025

Copy link
Copy Markdown
Member Author

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

Eliyaan commented Feb 16, 2025

Copy link
Copy Markdown
Member Author

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

@JalonSolov JalonSolov left a comment

Copy link
Copy Markdown
Collaborator

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.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

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
@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