mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
tvariant: fix -Wconversion warning
char -> wchar_t. Just directly use int and remove the cast. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
0318201fbd
commit
82b5ded8ee
@ -87,9 +87,9 @@ void printStringToStream(std::ostream &s, const String &v)
|
||||
void printByteVectorToStream(std::ostream &s, const String &v)
|
||||
{
|
||||
s << '"';
|
||||
for(char c : v) {
|
||||
for(int c : v) {
|
||||
s << "\\x" << std::setfill('0') << std::setw(2) << std::right << std::hex
|
||||
<< (static_cast<int>(c) & 0xff);
|
||||
<< (c & 0xff);
|
||||
}
|
||||
s << std::dec << '"';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user