From: Vsevolod Stakhov Date: Sun, 23 Jan 2022 19:47:48 +0000 (+0000) Subject: [Minor] Remove redundant abs call X-Git-Tag: 3.2~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22db618165cfb1ee0f3ff808fd27603c55cf9234;p=thirdparty%2Frspamd.git [Minor] Remove redundant abs call --- diff --git a/src/libmime/images.c b/src/libmime/images.c index 4e0872f389..dc34c8174d 100644 --- a/src/libmime/images.c +++ b/src/libmime/images.c @@ -223,10 +223,10 @@ process_bmp_image (rspamd_mempool_t *pool, rspamd_ftok_t *data) img->type = IMAGE_TYPE_BMP; img->data = data; p = data->begin + 18; - memcpy (&t, p, sizeof (gint32)); - img->width = abs (GINT32_FROM_LE (t)); + memcpy (&t, p, sizeof (guint32)); + img->width = GUINT32_FROM_LE (t); memcpy (&t, p + 4, sizeof (gint32)); - img->height = abs (GINT32_FROM_LE (t)); + img->height = GUINT32_FROM_LE (t); return img; }