Update arm_offset_q7.c
type promotion before __SSAT
@@ -123,10 +123,10 @@ void arm_offset_q7(
/* Add offset and store result in destination buffer (4 samples at a time). */
write_q7x4_ia (&pDst, __QADD8(read_q7x4_ia ((q7_t **) &pSrc), offset_packed));
#else
- *pDst++ = (q7_t) __SSAT(*pSrc++ + offset, 8);
- *pDst++ = (q7_t) __SSAT(*pSrc++ + offset, 8);
- *pDst++ = (q7_t) __SSAT(*pSrc++ + offset, 8);
- *pDst++ = (q7_t) __SSAT(*pSrc++ + offset, 8);
+ *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8);
+ *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8);
+ *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8);
+ *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8);
#endif
/* Decrement loop counter */
