From 56c31918274a9fe3fe4a10d1bc4da120e3a5e122 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Tue, 8 May 2012 19:51:50 +1000 Subject: [PATCH] metadata.cpp : Fix compiler warning on 64 bit. Patch from Bastiaan Timmer . --- src/libFLAC++/metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libFLAC++/metadata.cpp b/src/libFLAC++/metadata.cpp index 5c11dfd9..427529ba 100644 --- a/src/libFLAC++/metadata.cpp +++ b/src/libFLAC++/metadata.cpp @@ -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(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); }