From: James Zern Date: Sat, 6 Nov 2021 17:42:37 +0000 (-0700) Subject: video_source.h,ReallocImage: quiet implicit conv warning X-Git-Tag: v1.12.0-rc1~124^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40c21ff6fe32c12d7e0a7f66b0a2f7ca67a26695;p=libvpx video_source.h,ReallocImage: quiet implicit conv warning with -fsanitize=undefined test/video_source.h:194:33: runtime error: implicit conversion from type 'int' of value -32 (32-bit, signed) to type 'unsigned int' changed the value to 4294967264 (32-bit, unsigned) Change-Id: I92013086d517fecf01c9e4cdfe6737b8ce733a1f --- diff --git a/test/video_source.h b/test/video_source.h index e9340f21e..2ba3f6421 100644 --- a/test/video_source.h +++ b/test/video_source.h @@ -191,7 +191,7 @@ class DummyVideoSource : public VideoSource { void ReallocImage() { vpx_img_free(img_); img_ = vpx_img_alloc(NULL, format_, width_, height_, 32); - raw_sz_ = ((img_->w + 31) & ~31) * img_->h * img_->bps / 8; + raw_sz_ = ((img_->w + 31) & ~31u) * img_->h * img_->bps / 8; } vpx_image_t *img_;