Commit 56c31918 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

metadata.cpp : Fix compiler warning on 64 bit.

Patch from Bastiaan Timmer <basjetimmer@yahoo.com>.
parent 155719b4
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment