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:
Lukáš Lalinský
2008-05-22 20:40:14 +00:00
parent f6994ec26c
commit 9ce4c72995
2 changed files with 3 additions and 2 deletions

View File

@ -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();
}