Commit 263bb488a9 for aom
commit 263bb488a969b3601ce78795a58a99ed86520600
Author: Apurve Kumar Pandey <apurve.pandey@ittiam.com>
Date: Fri Jul 3 13:11:11 2026 +0530
Add explicit uint16_t cast in aom_memset16()
Add an explicit uint16_t cast in aom_memset16() to avoid
implicit signed-to-unsigned conversions when it is called
from the fill_residue_outside_frame().
Bug: 527078408, 527242002
Change-Id: I33b302a1bd56c6857e5523cc5dda8bb105a29de3
diff --git a/aom_mem/aom_mem.h b/aom_mem/aom_mem.h
index b3321391da..27e102e0bc 100644
--- a/aom_mem/aom_mem.h
+++ b/aom_mem/aom_mem.h
@@ -42,7 +42,7 @@ void aom_free(void *memblk);
static inline void *aom_memset16(void *dest, int val, size_t length) {
size_t i;
uint16_t *dest16 = (uint16_t *)dest;
- for (i = 0; i < length; i++) *dest16++ = val;
+ for (i = 0; i < length; i++) *dest16++ = (uint16_t)val;
return dest;
}