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

wstr: return correct result for split_ascii_prefix_bytes(<ascii str>) #12513

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

moulins
Copy link
Contributor

@moulins moulins commented Aug 2, 2023

split_ascii_prefix_bytes(b"abc") should return ("abc", b""), not ("", b"abc")

This doesn't affect correctness, but should increase performance of ASCII String -> WString conversions.

Kudos to @adrian17 for catching this!

`split_ascii_prefix_bytes(b"abc")` should return `("abc", b"")`, not
`("", b"abc")`

This doesn't affect correctness, but should increase performance of
ASCII `String` -> `WString` conversions.
@adrian17 adrian17 enabled auto-merge (rebase) August 2, 2023 22:23
@adrian17 adrian17 merged commit ff01444 into ruffle-rs:master Aug 2, 2023
13 checks passed
@moulins moulins deleted the wstr-fix-split-ascii branch August 2, 2023 22:36
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.

None yet

2 participants