From 019fe4843f51b29b4fdc2a31fa917ecffd72ab46 Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Wed, 27 Jul 2011 23:14:54 +0200 Subject: [PATCH] ByteVector works on chars, not unsigned chars, so there needs to be a cast before the comparison --- taglib/it/itfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);