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

Conversion could overflow variable #1083

Open
stefandrissen opened this issue Oct 18, 2023 · 2 comments
Open

Conversion could overflow variable #1083

stefandrissen opened this issue Oct 18, 2023 · 2 comments

Comments

@stefandrissen
Copy link

A continuation of #1076 - after updating to V2.23 truncate will still flag the rule:

def var i1 as int.
def var i2 as int.

i2 = truncate( i1 / 2, 0 ).
@gquerret gquerret changed the title FP: Conversion could overflow variable Conversion could overflow variable Oct 19, 2023
@stefandrissen
Copy link
Author

Just leaving this here :-)

image

@gquerret
Copy link
Contributor

That's just in case you change to exp(2, 31) + 1 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants