mirror of https://github.com/xiph/flac
metadata.cpp : Fix compiler warning on 64 bit.
Patch from Bastiaan Timmer <basjetimmer@yahoo.com>.
This commit is contained in:
parent
155719b470
commit
56c3191827
|
@ -845,7 +845,7 @@ namespace FLAC {
|
|||
{
|
||||
FLAC__ASSERT(is_valid());
|
||||
// vendor_string is a special kind of entry
|
||||
const ::FLAC__StreamMetadata_VorbisComment_Entry vendor_string = { strlen((const char *)string), (FLAC__byte*)string }; // we can cheat on const-ness because we make a copy below:
|
||||
const ::FLAC__StreamMetadata_VorbisComment_Entry vendor_string = { static_cast<FLAC__uint32>(strlen((const char *)string)), (FLAC__byte*)string }; // we can cheat on const-ness because we make a copy below:
|
||||
return (bool)::FLAC__metadata_object_vorbiscomment_set_vendor_string(object_, vendor_string, /*copy=*/true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue