mirror of
https://github.com/taglib/taglib.git
synced 2026-07-13 14:51:05 -04:00
clang-tidy: use C++ casting
Found with google-readability-casting Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -130,7 +130,7 @@ public:
|
||||
{
|
||||
ByteVector data = file.readBlock(std::min(m_size, limit));
|
||||
unsigned int count = data.size();
|
||||
int index = data.find((char) 0);
|
||||
int index = data.find(static_cast<char>(0));
|
||||
if(index > -1) {
|
||||
data.resize(index);
|
||||
}
|
||||
@@ -534,7 +534,7 @@ void XM::File::read(bool)
|
||||
.u16L(bpmSpeed);
|
||||
|
||||
unsigned int count = header.read(*this, headerSize - 4U);
|
||||
unsigned int size = std::min(headerSize - 4U, (unsigned long)header.size());
|
||||
unsigned int size = std::min(headerSize - 4U, static_cast<unsigned long>(header.size()));
|
||||
|
||||
READ_ASSERT(count == size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user