Skip to content

src: return a null-terminated slice #9183

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

Merged
merged 1 commit into from
Jul 15, 2021
Merged

Conversation

jmc-88
Copy link
Contributor

@jmc-88 jmc-88 commented Jun 20, 2021

As noted by @Vexu in #8636 (review). This amends the previous pull request so to also align @src() to the other builtins in returning a sentinel-terminated value, and is part of #3779.

This does not address @typeInfo() which is a trickier case and was forked off to #9182.

@jmc-88
Copy link
Contributor Author

jmc-88 commented Jun 21, 2021

For the record, the linked failure is:

Test [136/1013] behavior.atomics.test "behavior-native-ReleaseFast-bare-single atomicrmw with floats"... FAIL (TestUnexpectedResult)

which is unrelated to this change.

@andrewrk andrewrk merged commit b009aca into ziglang:master Jul 15, 2021
@jmc-88 jmc-88 deleted the issue-3779 branch July 19, 2021 21:33
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.

2 participants