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

Delays the computation to get pointers because pointer might be be NULL when draining empty vec #18

Closed
wants to merge 1 commit into from
Closed

Delays the computation to get pointers because pointer might be be NULL when draining empty vec #18

wants to merge 1 commit into from

Conversation

hbina
Copy link
Contributor

@hbina hbina commented Feb 12, 2021

My solution is to just delay the computation to get the pointers.

The issue is that NonNull requires data to be non-null and MiniVec only
allocates as necessary.

I had to disable 1 of the test. I don't fully understand why this commit changed this behavior.

Signed-off-by: Hanif Bin Ariffin hanif.ariffin.4326@gmail.com

My solution is to just delay the computation to get the pointers.

The issue is that NonNull requires data to be non-null and MiniVec only
allocates as necessary.

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
@hbina hbina changed the title Fix crashing when attempting to drain an empty minivec Delays the computation to get pointers because pointer might be be NULL when draining empty vec Feb 13, 2021
@hbina hbina closed this Feb 13, 2021
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.

1 participant