From: Scott Wheeler Date: Wed, 27 Jul 2011 21:14:54 +0000 (+0200) Subject: ByteVector works on chars, not unsigned chars, so there needs to be a cast before... X-Git-Tag: v1.8beta~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=019fe4843f51b29b4fdc2a31fa917ecffd72ab46;p=taglib ByteVector works on chars, not unsigned chars, so there needs to be a cast before the comparison --- diff --git a/taglib/it/itfile.cpp b/taglib/it/itfile.cpp index 9dde7e6e..0dfe6b78 100644 --- a/taglib/it/itfile.cpp +++ b/taglib/it/itfile.cpp @@ -240,7 +240,8 @@ void IT::File::read(bool) // But this always gives 64 channels for all my files anyway. // Strangely VLC does report other values. I wonder how VLC // gets it's values. - if(pannings[i] < 128 && volumes[i] > 0) ++ channels; + if((unsigned char) pannings[i] < 128 && volumes[i] > 0) + ++channels; } d->properties.setChannels(channels);