mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Fix compilation on MSVC 2010 with the C++0x version of std::bitset
Hopefuly it doesn't break anything on older compilers... git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1216365 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
0087895206
commit
b051df0062
@ -189,7 +189,7 @@ void Footer::parse(const ByteVector &data)
|
||||
|
||||
// Read the flags
|
||||
|
||||
std::bitset<32> flags(data.mid(20, 4).toUInt(false));
|
||||
std::bitset<32> flags(static_cast<unsigned long long>(data.mid(20, 4).toUInt(false)));
|
||||
|
||||
d->headerPresent = flags[31];
|
||||
d->footerPresent = !flags[30];
|
||||
|
@ -113,7 +113,7 @@ void MPC::Properties::read()
|
||||
if(d->version >= 7) {
|
||||
frames = d->data.mid(4, 4).toUInt(false);
|
||||
|
||||
std::bitset<32> flags = d->data.mid(8, 4).toUInt(false);
|
||||
std::bitset<32> flags(static_cast<unsigned long long>(d->data.mid(8, 4).toUInt(false)));
|
||||
d->sampleRate = sftable[flags[17] * 2 + flags[16]];
|
||||
d->channels = 2;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ void MPEG::Header::parse(const ByteVector &data)
|
||||
return;
|
||||
}
|
||||
|
||||
std::bitset<32> flags(data.toUInt());
|
||||
std::bitset<32> flags(static_cast<unsigned long long>(data.toUInt()));
|
||||
|
||||
// Check for the second byte's part of the MPEG synch
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
|
||||
#include <tstring.h>
|
||||
#include <tdebug.h>
|
||||
#include <bitset>
|
||||
|
||||
#include "wavpackproperties.h"
|
||||
#include "wavpackfile.h"
|
||||
|
Loading…
Reference in New Issue
Block a user