summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6c6134)
raw | patch | inline | side by side (parent: e6c6134)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 21 Mar 2008 05:06:19 +0000 (05:06 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 21 Mar 2008 05:06:19 +0000 (05:06 +0000) |
src/color-profile.cpp | patch | blob | history |
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index ecc0bcd4e37520a7eb2f6f9005f3947f540b322f..596e22d7a4e60e5d9db25370fb537bee2c6d4543 100644 (file)
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
ssize_t got = read(fd, scratch, len);
if ( got != -1 ) {
size_t calcSize = (scratch[0] << 24) | (scratch[1] << 16) | (scratch[2] << 8) | scratch[3];
- if ( calcSize > 128 && calcSize <= st.st_size ) {
+ if ( calcSize > 128 && calcSize <= static_cast<size_t>(st.st_size) ) {
isIccFile = (scratch[36] == 'a') && (scratch[37] == 'c') && (scratch[38] == 's') && (scratch[39] == 'p');
}
}