metadata.cpp : Fix compiler warning on 64 bit.

Patch from Bastiaan Timmer <basjetimmer@yahoo.com>.
This commit is contained in:
Erik de Castro Lopo 2012-05-08 19:51:50 +10:00
parent 155719b470
commit 56c3191827
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}