]> granicus.if.org Git - taglib/commitdiff
win32 compile / warnings--
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>
Sat, 28 Apr 2007 16:31:29 +0000 (16:31 +0000)
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>
Sat, 28 Apr 2007 16:31:29 +0000 (16:31 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@658841 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/flac/flacfile.cpp
taglib/ogg/flac/oggflacfile.cpp

index ed8d6d544cfc29f912964ddb822552bdcb5ba3d8..dcaf58ef58ed5f8afe16edc60c6643e917df1ba4 100644 (file)
@@ -173,7 +173,7 @@ bool FLAC::File::save()
 
       ByteVector header = readBlock(4);
       char blockType = header[0] & 0x7f;
-      isLastBlock = header[0] & 0x80;
+      isLastBlock = (header[0] & 0x80) != 0;
       uint blockLength = header.mid(1, 3).toUInt();
 
       if(blockType == VorbisComment) {
@@ -191,7 +191,7 @@ bool FLAC::File::save()
     seek(firstBlockOffset);
 
     ByteVector header = readBlock(4);
-    bool isLastBlock = header[0] & 0x80;
+    bool isLastBlock = (header[0] & 0x80) != 0;
     uint blockLength = header.mid(1, 3).toUInt();
 
     if(isLastBlock) {
@@ -384,7 +384,7 @@ void FLAC::File::scan()
   // <24> Length of metadata to follow
 
   char blockType = header[0] & 0x7f;
-  bool isLastBlock = header[0] & 0x80;
+  bool isLastBlock = (header[0] & 0x80) != 0;
   uint length = header.mid(1, 3).toUInt();
 
   // First block should be the stream_info metadata
@@ -403,7 +403,7 @@ void FLAC::File::scan()
   while(!isLastBlock) {
     header = readBlock(4);
     blockType = header[0] & 0x7f;
-    isLastBlock = header[0] & 0x80;
+    isLastBlock = (header[0] & 0x80) != 0;
     length = header.mid(1, 3).toUInt();
 
     if(blockType == Padding) {
index ecd5dcb28e67ca6ea61831a1508729d5e4ff8790..132bb80d9965fc0c054ffbb9d1468f45d2ad0b21 100644 (file)
@@ -216,7 +216,7 @@ void Ogg::FLAC::File::scan()
   // <24> Length of metadata to follow
 
   char blockType = header[0] & 0x7f;
-  bool lastBlock = header[0] & 0x80;
+  bool lastBlock = (header[0] & 0x80) != 0;
   uint length = header.mid(1, 3).toUInt();
   overhead += length;
 
@@ -239,7 +239,7 @@ void Ogg::FLAC::File::scan()
 
     header = metadataHeader.mid(0, 4);
     blockType = header[0] & 0x7f;
-    lastBlock = header[0] & 0x80;
+    lastBlock = (header[0] & 0x80) != 0;
     length = header.mid(1, 3).toUInt();
     overhead += length;