From bc106ad81e1015c896b32ae1fec6cb3c3894ac84 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Mon, 10 Aug 2015 00:50:13 +0900 Subject: [PATCH] Separate two variable initializations. --- taglib/mpeg/id3v2/frames/chapterframe.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/taglib/mpeg/id3v2/frames/chapterframe.cpp b/taglib/mpeg/id3v2/frames/chapterframe.cpp index a424cb3c..ad471ecd 100644 --- a/taglib/mpeg/id3v2/frames/chapterframe.cpp +++ b/taglib/mpeg/id3v2/frames/chapterframe.cpp @@ -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)