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

fix: NULL pointer not being recognized #26

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

tjosepo
Copy link
Contributor

@tjosepo tjosepo commented Aug 29, 2022

Small bug that slipped in #25

The function maybeThrowError() saves errors codes in a array of BigUInt64Array. This automatically converts the pointers into bigint. I had modified the get isNone() function to only check for number. Some errors were ignored because of this.

I added 2 tests to check error handling.

Might be a good idea to create a util function isZero() that handles both number and bigint.

Copy link
Member

@DjDeveloperr DjDeveloperr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@DjDeveloperr DjDeveloperr merged commit 54c02b4 into denosaurs:main Aug 30, 2022
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