mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
clang-tidy: fix wrong cast
Found with bugprone-misplaced-widening-cast Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
e1ac724cfe
commit
8a65068f3b
@ -88,7 +88,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
|
||||
|
||||
// Xing header found.
|
||||
|
||||
if(data.size() < static_cast<unsigned long>(offset + 16)) {
|
||||
if(data.size() < static_cast<unsigned long>(offset) + 16) {
|
||||
debug("MPEG::XingHeader::parse() -- Xing header found but too short.");
|
||||
return;
|
||||
}
|
||||
@ -112,7 +112,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
|
||||
|
||||
// VBRI header found.
|
||||
|
||||
if(data.size() < static_cast<unsigned long>(offset + 32)) {
|
||||
if(data.size() < static_cast<unsigned long>(offset) + 32) {
|
||||
debug("MPEG::XingHeader::parse() -- VBRI header found but too short.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user