Make empty filling a noop for FixedSizeByteArrayModel

parent 31f2b477
......@@ -261,6 +261,9 @@ Size FixedSizeByteArrayModel::fill( Byte fillByte, Address offset, Size fillLeng
if( fillLength < 0 || fillLength > lengthToEnd )
fillLength = lengthToEnd;
if( fillLength == 0 )
return 0;
memset( &mData[offset], fillByte, fillLength );
mModified = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment