[codec,interleaved] fix compiler warning

This commit is contained in:
akallabeth 2023-09-11 10:54:51 +02:00 committed by akallabeth
parent b4985cc39d
commit d93c4fea2c
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ static INLINE BOOL buffer_within_range_(const void* pbSrc, size_t size, const vo
WINPR_ASSERT(pbSrc);
WINPR_ASSERT(pbEnd);
if ((char*)pbSrc + size > pbEnd)
if ((const char*)pbSrc + size > (const char*)pbEnd)
{
WLog_ERR(TAG, "[%s:%" PRIuz "] pbSrc=%p + %" PRIuz " > pbEnd=%p", fkt, line, pbSrc, size,
pbEnd);