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

Add bounds check on numeric arguments #6

Open
stevenjswanson opened this issue Oct 15, 2022 · 0 comments
Open

Add bounds check on numeric arguments #6

stevenjswanson opened this issue Oct 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stevenjswanson
Copy link
Member

Raise an exception if you pass a Python integer as an argument that is too large for type of the function argument.

e.g.

run(build(code(r"""void foo(uint8_t v){}""")), arguments=arg_map(v=300)))

Should fail

@stevenjswanson stevenjswanson added the enhancement New feature or request label Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant