metadata.cpp : Fix compiler warning on 64 bit.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 8 May 2012 09:51:50 +0000 (19:51 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 8 May 2012 09:51:50 +0000 (19:51 +1000)
Patch from Bastiaan Timmer <basjetimmer@yahoo.com>.

src/libFLAC++/metadata.cpp

index 5c11dfd..427529b 100644 (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);
                }