mirror of
https://github.com/taglib/taglib.git
synced 2025-07-25 08:24:29 -04:00
Fix reading of POPM rating -- it's unsigned char, not just char
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@811387 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -107,7 +107,7 @@ void PopularimeterFrame::parseFields(const ByteVector &data)
|
||||
d->rating = 0;
|
||||
d->counter = 0;
|
||||
if(pos < size) {
|
||||
d->rating = data[pos++];
|
||||
d->rating = (unsigned char)(data[pos++]);
|
||||
if(pos < size) {
|
||||
d->counter = data.mid(pos, 4).toUInt();
|
||||
}
|
||||
|
Reference in New Issue
Block a user