summaryrefslogtreecommitdiffstats
path: root/src/file_raf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:29:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:29:48 +0100
commit5ed8822f2b3cc95bf7f9bda45bf7b57e8a693f6d (patch)
tree69fd55db22dbc9b3d4d7ebc6aba46203a9c82b0e /src/file_raf.c
parent17040353bc6dc9d3ac701037fe90ce69382fb49f (diff)
Turn off various signed/unsigned comparaison warnings
Diffstat (limited to 'src/file_raf.c')
-rw-r--r--src/file_raf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_raf.c b/src/file_raf.c
index 1b455cf..efff456 100644
--- a/src/file_raf.c
+++ b/src/file_raf.c
@@ -67,11 +67,11 @@ static int header_check_raf(const unsigned char *buffer, const unsigned int buff
uint64_t tmp;
const struct header_raf *raf=(const struct header_raf *)buffer;
uint64_t size;
- if(be32(raf->jpg_offset)!=0 && be32(raf->jpg_offset)<sizeof(struct header_raf))
+ if((const uint32_t)be32(raf->jpg_offset)!=0 && (const uint32_t)be32(raf->jpg_offset)<sizeof(struct header_raf))
return 0;
- if(be32(raf->cfa_offset)!=0 && be32(raf->cfa_offset)<sizeof(struct header_raf))
+ if((const uint32_t)be32(raf->cfa_offset)!=0 && (const uint32_t)be32(raf->cfa_offset)<sizeof(struct header_raf))
return 0;
- if(be32(raf->cfa_header_offset)!=0 && be32(raf->cfa_header_offset)<sizeof(struct header_raf))
+ if((const uint32_t)be32(raf->cfa_header_offset)!=0 && (const uint32_t)be32(raf->cfa_header_offset)<sizeof(struct header_raf))
return 0;
size=(uint64_t)be32(raf->jpg_offset)+be32(raf->jpg_size);
tmp=(uint64_t)be32(raf->cfa_offset)+be32(raf->cfa_size);