From: Victor Julien Date: Tue, 28 Oct 2014 19:03:32 +0000 (+0100) Subject: mime: fix compiler warning X-Git-Tag: suricata-2.1beta2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd6737b658d2f7af5d9053c44f421806fc43431;p=thirdparty%2Fsuricata.git mime: fix compiler warning --- diff --git a/src/util-decode-mime.c b/src/util-decode-mime.c index 410c243d57..4e3035bb38 100644 --- a/src/util-decode-mime.c +++ b/src/util-decode-mime.c @@ -2570,7 +2570,7 @@ static int TestDataChunkCallback(const uint8_t *chunk, uint32_t len, } } while (tok != NULL && tok != remainPtr && - remainPtr - (uint8_t *) chunk < len); + (uint32_t)(remainPtr - (uint8_t *) chunk) < len); SCLogDebug("line count (len=%u): %u", len, *line_count); }