summaryrefslogtreecommitdiffstats
path: root/src/file_fh5.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:31:25 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:31:25 +0100
commit45c6d1d25dca3eb5a31feb8d5200a7be106e5d84 (patch)
tree125d4b0054191643622cf1061b7cecaa2b1b3793 /src/file_fh5.c
parent601a939c9c00eb91b1c00438007c7e7d8f0d5bd1 (diff)
file_fh5.c: turn off a sign/unsigned warning
Diffstat (limited to 'src/file_fh5.c')
-rw-r--r--src/file_fh5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_fh5.c b/src/file_fh5.c
index 866ce3d..e91de86 100644
--- a/src/file_fh5.c
+++ b/src/file_fh5.c
@@ -62,7 +62,7 @@ static void file_check_fh5(file_recovery_t *file_recovery)
static int header_check_fh5(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
const fh5_header_t *fh5_buffer=(const fh5_header_t *) buffer;
- if(be32(fh5_buffer->datalen) < sizeof(struct fh5_header_s))
+ if((const uint32_t)be32(fh5_buffer->datalen) < sizeof(struct fh5_header_s))
return 0;
reset_file_recovery(file_recovery_new);
file_recovery_new->min_filesize=4096;