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

Comparison with size_t #6

Closed
davideanastasia opened this issue Apr 28, 2012 · 3 comments
Closed

Comparison with size_t #6

davideanastasia opened this issue Apr 28, 2012 · 3 comments

Comments

@davideanastasia
Copy link

Hi,
I've been compiling Luminance HDR with Clang, and I get this warning:

/opt/local/include/lcms.h:1418:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (size < 0) return NULL; // Prevent signed size_t exploits
~~~~ ^ ~

@mm2 mm2 closed this as completed Apr 28, 2012
@mm2
Copy link
Owner

mm2 commented Apr 28, 2012

Hi,
Thanks for reporting. However, this happens in lcms1, which is an old codebase not maintained anymore. On lcms2, which is the project this page hosts, there is no warning at all.

@davideanastasia
Copy link
Author

Sorry about that. Thanks for the quick reply.

@mm2
Copy link
Owner

mm2 commented Apr 29, 2012

Hi, don't be sorry :-) you just reported a warning in your developing environment and this is great. I appreciate very much people that devote some of their time to support lcms, so many thanks!

best regards
Marti

Davide Anastasia reply@reply.github.com escribió:

Sorry about that. Thanks for the quick reply.


Reply to this email directly or view it on GitHub:
#6 (comment)

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

No branches or pull requests

2 participants