]> granicus.if.org Git - taglib/commitdiff
Separate two variable initializations.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 9 Aug 2015 15:50:13 +0000 (00:50 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 9 Aug 2015 15:50:13 +0000 (00:50 +0900)
taglib/mpeg/id3v2/frames/chapterframe.cpp

index a424cb3c4f2611ebc60f343113998821e5ad5c21..ad471ecd6b0a1321c579d2df0cbe8ac35cdc77bd 100644 (file)
@@ -245,7 +245,8 @@ void ChapterFrame::parseFields(const ByteVector &data)
     return;
   }
 
-  int pos = 0, embPos = 0;
+  int pos = 0;
+  TagLib::uint embPos = 0;
   d->elementID = readStringField(data, String::Latin1, &pos).data(String::Latin1);
   d->startTime = data.toUInt(pos, true);
   pos += 4;
@@ -262,7 +263,7 @@ void ChapterFrame::parseFields(const ByteVector &data)
   if(size < header()->size())
     return;
 
-  while((uint)embPos < size - header()->size()) {
+  while(embPos < size - header()->size()) {
     Frame *frame = FrameFactory::instance()->createFrame(data.mid(pos + embPos), (d->tagHeader != 0));
 
     if(!frame)