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

replace unsafe_convert methods with safe cconvert ones #51764

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Oct 18, 2023

This seems the correct way to define most conversions, since the unsafe logic should typically be isolated to a few areas, and everywhere else just defines conversions to it. This ensures the root is preserved even if the user later makes unexpected changes to the parent object (although the length might have later become inconsistent at that point, so it is not a guaranteed fix for memory issues).

This seems the correct way to define most conversions, since the unsafe
logic should typically be isolated to a few areas, and everywhere else
just defines conversions to it. This ensures the root is preserved even
if the user later makes unexpected changes to the parent object
(although the length might have later become inconsistent at that point,
so it is not a guaranteed fix for memory issues).
@oscardssmith oscardssmith added the arrays [a, r, r, a, y, s] label Oct 18, 2023
@vtjnash vtjnash merged commit df39cee into master Oct 24, 2023
5 of 7 checks passed
@vtjnash vtjnash deleted the jn/cconvert-more branch October 24, 2023 15:54
@Keno
Copy link
Member

Keno commented Oct 25, 2023

This PR appears to have broken CI. I'll put up the revert PR to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants