From 43df64a9ac32491a25772ac9c678f45b2b7004d2 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 7 May 2021 19:35:25 -0700 Subject: [PATCH] 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 --- vpx/src/vpx_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.50.1