diff options
Diffstat (limited to 'src/libmime/archives.c')
-rw-r--r-- | src/libmime/archives.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c index c78b8c976..4187e86fa 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -244,7 +244,7 @@ rspamd_archive_rar_read_vint (const guchar *start, gsize remain, guint64 *res) msg_debug_task ("rar archive is invalid (bad int32)"); \ return; \ } \ - n = p[0] + (p[1] << 8) + (p[2] << 16) + (p[3] << 24); \ + n = (guint)p[0] + ((guint)p[1] << 8) + ((guint)p[2] << 16) + ((guint)p[3] << 24); \ p += sizeof (guint32); \ } while (0) |