fix warnings

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@892447 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2008-12-04 12:37:36 +00:00
parent e2c76396dd
commit e989d7ad1d
2 changed files with 3 additions and 3 deletions

View File

@ -147,12 +147,12 @@ namespace TagLib {
public:
ByteVectorMirror(const ByteVector &source) : v(source) {}
const char operator[](int index) const
char operator[](int index) const
{
return v[v.size() - index - 1];
}
const char at(int index) const
char at(int index) const
{
return v.at(v.size() - index - 1);
}

View File

@ -35,7 +35,7 @@ namespace TagLib {
inline unsigned short byteSwap(unsigned short x)
{
return ((x) >> 8) & 0xff | ((x) & 0xff) << 8;
return (((x) >> 8) & 0xff) | (((x) & 0xff) << 8);
}
inline unsigned short combine(unsigned char c1, unsigned char c2)