Make clang happier.
This commit is contained in:
@@ -362,7 +362,7 @@ void LLStreamingAudio_FMODSTUDIO::update()
|
||||
case(FMOD_TAGDATATYPE_STRING_UTF8) :
|
||||
{
|
||||
U8 offs = 0;
|
||||
if (tag.datalen > 3 && ((char*)tag.data)[0] == 0xEF && ((char*)tag.data)[1] == 0xBB && ((char*)tag.data)[2] == 0xBF)
|
||||
if (tag.datalen > 3 && ((unsigned char*)tag.data)[0] == 0xEF && ((unsigned char*)tag.data)[1] == 0xBB && ((unsigned char*)tag.data)[2] == 0xBF)
|
||||
offs = 3;
|
||||
std::string out((char*)tag.data + offs, tag.datalen - offs);
|
||||
if (out.length() && out[out.size() - 1] == 0)
|
||||
|
||||
Reference in New Issue
Block a user