]> granicus.if.org Git - taglib/commitdiff
MPEG: Fix warnings about signed/unsigned mismatch on some compilers.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 30 Jun 2015 02:58:07 +0000 (11:58 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 30 Jun 2015 02:58:07 +0000 (11:58 +0900)
taglib/mpeg/xingheader.cpp

index 9fae49349221216f4676256f10fc7a71b649c3b8..5a4961845fdf389525e8b6976f1ac18229b5d211 100644 (file)
@@ -103,7 +103,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
 
     // Xing header found.
 
-    if(data.size() < offset + 16) {
+    if(data.size() < static_cast<ulong>(offset + 16)) {
       debug("MPEG::XingHeader::parse() -- Xing header found but too short.");
       return;
     }
@@ -127,7 +127,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
 
       // VBRI header found.
 
-      if(data.size() < offset + 32) {
+      if(data.size() < static_cast<ulong>(offset + 32)) {
         debug("MPEG::XingHeader::parse() -- VBRI header found but too short.");
         return;
       }