From ef23b00c2cfb4b79a76808bdbcf5c4ac987300a7 Mon Sep 17 00:00:00 2001 From: Saku Erla Date: Fri, 20 Feb 2026 04:16:59 +0200 Subject: [PATCH] Skip splicing when no changes will be made --- src/Array.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Array.cpp b/src/Array.cpp index b8f9ac35c..d51401f15 100644 --- a/src/Array.cpp +++ b/src/Array.cpp @@ -290,7 +290,7 @@ void ArrayBase::Splice(ArrayBase *outResult,int inPos,int inLen) if (inPos<0) inPos =0; } - if (inLen<0) + if (inLen<=0) return; if (inPos+inLen>length) inLen = length - inPos;