API compatibility

Festus Hagen festushagenlists at yahoo.com
Sat Jun 1 06:22:27 UTC 2013


Hi

In commit "Reduce unnecessary memory copies by ByteVector", in function "containsAt(...)" there was a change made to the sanity checking.

Does this NOT break the API ?

The code ... (messed by yahoo)
  // do some sanity checking -- all of these things are needed for the search to be valid

-  if(patternLength > size() || offset >= size() || patternOffset >= pattern.size() || patternLength == 0)
+  if(offset + patternLength > size() || patternOffset >= pattern.size() || patternLength == 0)

-Enjoy
fh : )_~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20130531/5bef8a74/attachment.html>


More information about the taglib-devel mailing list