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 status check in dict lookup #4152

Merged
merged 1 commit into from Jun 7, 2019
Merged

Conversation

esc
Copy link
Member

@esc esc commented Jun 5, 2019

We need to check that the ix-status is strictly greater than DKIX.EMPTY.
Because only then was the slot full (and not empty) and a value was
found indeed. The went unnoticed because in the implementation for
@overload (impl_getitem) the ix-status is checked again and an
appropriate KeyError is raised.

We need to check that the ix-status is strictly greater than DKIX.EMPTY.
Because only then was the slot full (and not empty) and a value was
found indeed. The went unnoticed because in the implementation for
@overload (impl_getitem) the ix-status is checked again and an
appropriate KeyError is raised.
@sklam sklam self-requested a review June 5, 2019 21:49
Copy link
Member

@sklam sklam left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@sklam sklam added the 5 - Ready to merge Review and testing done, is ready to merge label Jun 6, 2019
@sklam sklam merged commit a97dc18 into numba:master Jun 7, 2019
@esc esc deleted the fix_typed_dict_ix branch June 30, 2019 00:30
@stuartarchibald stuartarchibald added this to the Numba 0.45 RC milestone Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants