Skip to content

Commit ef23b00

Browse files
authored
Skip splicing when no changes will be made
1 parent 8600e4d commit ef23b00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void ArrayBase::Splice(ArrayBase *outResult,int inPos,int inLen)
290290
if (inPos<0)
291291
inPos =0;
292292
}
293-
if (inLen<0)
293+
if (inLen<=0)
294294
return;
295295
if (inPos+inLen>length)
296296
inLen = length - inPos;

0 commit comments

Comments
 (0)