From: Steve Lhomme Date: Wed, 4 Jan 2023 14:24:47 +0000 (+0100) Subject: taglib: don't cast the file st_size to a possibly smaller type X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~73 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f6e6d42e9b4d735c87767ead26d95b98626febd4;p=vlc.git taglib: don't cast the file st_size to a possibly smaller type We can just use auto and always get the proper type. (cherry picked from commit 7413126744e0b494856ba9acc5ae3c27ce4af625) Gbp-Pq: Name 0053-taglib-don-t-cast-the-file-st_size-to-a-possibly-sma.patch --- diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp index 95865104..2891e067 100644 --- a/modules/meta_engine/taglib.cpp +++ b/modules/meta_engine/taglib.cpp @@ -1233,7 +1233,7 @@ static void WriteMetaToId3v2( ID3v2::Tag* tag, input_item_t* p_item ) fclose( p_file ); return; } - off_t file_size = st.st_size; + auto file_size = st.st_size; free( psz_path );