]> granicus.if.org Git - taglib/commitdiff
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>
Sun, 4 Mar 2012 11:01:21 +0000 (12:01 +0100)
taglib/ogg/xiphcomment.cpp

index c26391a91b2a366f74229e58a38d36343349301d..c02ef1a1bab5710b5e0ad255d79a3ec9ed8f7a67 100644 (file)
@@ -287,7 +287,7 @@ void Ogg::XiphComment::parse(const ByteVector &data)
 
   uint 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);