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

Tighten checking of numeric values #102

Open
bocchino opened this issue Nov 29, 2021 · 0 comments
Open

Tighten checking of numeric values #102

bocchino opened this issue Nov 29, 2021 · 0 comments
Labels
proposed feature A proposed new feature semantics Issues related to semantics spec Issues related to the FPP language specification user's guide Issues related to the FPP User's Guide

Comments

@bocchino
Copy link
Collaborator

If a numeric value is put into a type that can't hold it, throw an error. For example, this will not be allowed:

array A = [3] U32 default -1

because the type U32 cannot represent the integer value -1.

@bocchino bocchino added semantics Issues related to semantics spec Issues related to the FPP language specification user's guide Issues related to the FPP User's Guide labels Nov 29, 2021
@bocchino bocchino self-assigned this Nov 29, 2021
bocchino added a commit that referenced this issue Feb 2, 2023
Relax bound on size of literal integer expressions
The implementation doesn't currently enforce this constraint
We'll fix this when we address #102
@bocchino bocchino added the proposed feature A proposed new feature label Nov 16, 2023
@bocchino bocchino removed their assignment Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposed feature A proposed new feature semantics Issues related to semantics spec Issues related to the FPP language specification user's guide Issues related to the FPP User's Guide
Projects
None yet
Development

No branches or pull requests

1 participant