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

[mypyc] Fix fastcall positional fast path when parser is uninitialized #10834

Merged
merged 1 commit into from
Jul 18, 2021

Commits on Jul 17, 2021

  1. [mypyc] Fix fastcall positional fast path when parser is uninitialized

    In `CPyArg_ParseStackAndKeywordsSimple`, we don't check if the parser is
    initialized, so on the first call, `min` and `max` will be zero and so
    zero arguments being passed will always pass the test. Add an initialization
    check.
    
    Fixes mypyc/mypyc#872.
    msullivan committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    48ab7c4 View commit details
    Browse the repository at this point in the history