circular volatile buffer safety

add padding to the circular volative buffer overlap test to avoid loop artifacting
This commit is contained in:
AzaezelX 2025-11-20 10:04:20 -06:00
parent 9ec752b646
commit 473a45fbca

View file

@ -29,7 +29,7 @@ public:
bool checkOverlap(U32 start, U32 end)
{
if( mStart < end && start < mEnd )
if ((mStart < end - 1) && (start < mEnd - 1))
return true;
return false;