mirror of
https://github.com/taglib/taglib.git
synced 2025-07-21 14:34:23 -04:00
Avoid the risk of subtracting between signed and unsigned types.
This commit is contained in:
@ -62,7 +62,7 @@ public:
|
||||
}
|
||||
|
||||
long APELocation;
|
||||
unsigned int APESize;
|
||||
long APESize;
|
||||
|
||||
long ID3v1Location;
|
||||
|
||||
@ -174,7 +174,7 @@ bool WavPack::File::save()
|
||||
insert(data, d->APELocation, d->APESize);
|
||||
|
||||
if(d->ID3v1Location >= 0)
|
||||
d->ID3v1Location += (data.size() - d->APESize);
|
||||
d->ID3v1Location += (static_cast<long>(data.size()) - d->APESize);
|
||||
|
||||
d->APESize = data.size();
|
||||
}
|
||||
|
Reference in New Issue
Block a user