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

enumeral and non-enumeral type in conditional expression #28

Open
GoogleCodeExporter opened this issue May 22, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. compile with -Wall
2. calls from MZ_MIN and MZ_MAX with different var types like in dict_size = 
MZ_MIN(dict_size + cur_match_len, TDEFL_LZ_DICT_SIZE);

What is the expected output? What do you see instead?
expected are no warning, but i got the warning "enumeral and non-enumeral type 
in conditional expression [enabled by default]"

What version of the product are you using? On what operating system?
1.15r4 with qt 5.0.2 on win7 64bit

Please provide any additional information below.
solved issue with explcit cast. i.e. dict_size = MZ_MIN(dict_size + 
cur_match_len, (mz_uint)TDEFL_LZ_DICT_SIZE);

Original issue reported on code.google.com by dragon...@googlemail.com on 10 Dec 2013 at 5:00

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

1 participant