Don't store the output of ByteVector::toUInt() in int, use uint instead
authorLukáš Lalinský <lalinsky@gmail.com>
Sun, 4 Mar 2012 11:01:21 +0000 (12:01 +0100)
committerLukáš Lalinský <lalinsky@gmail.com>
Sat, 10 Mar 2012 08:12:32 +0000 (09:12 +0100)
taglib/ogg/xiphcomment.cpp

index e7e8fa915a8ede594548012dd6de92bddbc29ab5..b9f408f62a6f03ad17ba14f66e98ee84d3a755ee 100644 (file)
@@ -287,7 +287,7 @@ void Ogg::XiphComment::parse(const ByteVector &data)
 
   int pos = 0;
 
-  int vendorLength = data.mid(0, 4).toUInt(false);
+  uint vendorLength = data.mid(0, 4).toUInt(false);
   pos += 4;
 
   d->vendorID = String(data.mid(pos, vendorLength), String::UTF8);