Sergei Trofimovich 0b583bafd0 taglib: fix test build failure on powerpc/c++11 (#834)
powerpc is a platform with 'char' == 'unsigned char'.
As a result '-1' is not expressible in char and build fails as:

```
    # '-funsigned-char' to force test build failure on other platforms
    $ cmake .. -DBUILD_TESTS=YES -DCMAKE_CXX_FLAGS="-O2 -funsigned-char" -DCMAKE_C_FLAGS="-O2 -funsigned-char"
    ...
    $ make check
    tests/test_synchdata.cpp: In member function 'void TestID3v2SynchData::testToUIntBroken()':
    tests/test_synchdata.cpp:78:33: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
     char data[] = { 0, 0, 0, -1 };
                                 ^
```

The fix is to expliticly cast -1 to 'char'.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2017-09-18 20:06:55 -05:00
..
2017-01-27 22:10:02 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00
2016-10-27 15:15:22 +09:00
2017-05-26 16:49:36 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00
2017-01-27 22:10:02 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00
2016-02-06 01:27:36 +09:00