From: James Zern Date: Sat, 8 May 2021 02:35:25 +0000 (-0700) Subject: img_alloc_helper: make align var unsigned X-Git-Tag: v1.11.0-rc1~39^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43df64a9ac32491a25772ac9c678f45b2b7004d2;p=libvpx img_alloc_helper: make align var unsigned quiets an integer sanitizer warning: vpx/src/vpx_image.c:101:25: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned) Change-Id: Ifeac31cc80811081c1ba10aadaa94dc36cd46efa --- diff --git a/vpx/src/vpx_image.c b/vpx/src/vpx_image.c index 2b7411f94..2a7afc00c 100644 --- a/vpx/src/vpx_image.c +++ b/vpx/src/vpx_image.c @@ -22,7 +22,7 @@ static vpx_image_t *img_alloc_helper(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned char *img_data) { unsigned int h, w, s, xcs, ycs, bps; unsigned int stride_in_bytes; - int align; + unsigned int align; if (img != NULL) memset(img, 0, sizeof(vpx_image_t));