diff --git a/Frameworks/TagLib/taglib/taglib/mpeg/id3v2/id3v2tag.cpp b/Frameworks/TagLib/taglib/taglib/mpeg/id3v2/id3v2tag.cpp index 0389b6d7c..5287481d8 100644 --- a/Frameworks/TagLib/taglib/taglib/mpeg/id3v2/id3v2tag.cpp +++ b/Frameworks/TagLib/taglib/taglib/mpeg/id3v2/id3v2tag.cpp @@ -198,7 +198,7 @@ float ID3v2::Tag::rg(const String &type) const for (FrameList::ConstIterator it = list.begin(); it != list.end(); ++it) { UserTextIdentificationFrame const* frame = static_cast(*it); if (!frame->description().isNull() && frame->description() == type) { - return static_cast(*it)->toString().toFloat(); + return frame->toString().toFloat(); } } }