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

Set the signess of a variable in declaration if it is always used with a sign. #26

Open
mchalupa opened this issue Sep 3, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@mchalupa
Copy link
Member

mchalupa commented Sep 3, 2019

If a variable is cast to e.g. int everywhere in the program, we may declare it int instead of unsigned int (and the casts visitor then removes useless casts). The question is whether we can easily track the casts of the variable.

@mchalupa mchalupa added the enhancement New feature or request label Sep 3, 2019
@tomsik68
Copy link
Member

tomsik68 commented Sep 8, 2019

Currently, it's not possible to easily distinguish whether a Value is a variable or a constant. It'd be wise to work on that before fixing this.

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

2 participants