commit: e6d5f5f83b69d689c501c45761b839bfda02caca Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Tue Feb 28 18:02:59 2023 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Tue Feb 28 18:03:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6d5f5f8
media-sound/nickvision-tagger: fix narrowing Bug: https://github.com/nlogozzo/NickvisionTagger/pull/80 Closes: https://bugs.gentoo.org/898372 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> ...nickvision-tagger-2022.11.2-fix-narrowing.patch | 27 ++++++++++++++++++++++ .../nickvision-tagger-2022.11.2.ebuild | 5 +++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/media-sound/nickvision-tagger/files/nickvision-tagger-2022.11.2-fix-narrowing.patch b/media-sound/nickvision-tagger/files/nickvision-tagger-2022.11.2-fix-narrowing.patch new file mode 100644 index 000000000000..96803ca9d692 --- /dev/null +++ b/media-sound/nickvision-tagger/files/nickvision-tagger-2022.11.2-fix-narrowing.patch @@ -0,0 +1,27 @@ +From a4c1dcc823d5294e32859a5b7f44d8dd31f7a43a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Maciej=20Bar=C4=87?= <[email protected]> +Date: Tue, 28 Feb 2023 18:57:14 +0100 +Subject: [PATCH] mediahelpers.cpp: use an explicit cast +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Bug: https://bugs.gentoo.org/898372 +Signed-off-by: Maciej Barć <[email protected]> +--- + src/helpers/mediahelpers.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/helpers/mediahelpers.cpp b/src/helpers/mediahelpers.cpp +index 47c563d..dbebf92 100644 +--- a/src/helpers/mediahelpers.cpp ++++ b/src/helpers/mediahelpers.cpp +@@ -35,7 +35,7 @@ std::string MediaHelpers::durationToString(int durationInSeconds) + std::string MediaHelpers::fileSizeToString(std::uintmax_t fileSize) + { + std::vector<std::string> sizes{ _("B"), _("KB"), _("MB"), _("GB"), _("TB") }; +- double size{ fileSize }; ++ double size{ static_cast<double>(fileSize) }; + int index{ 0 }; + std::stringstream builder; + while (size >= 1024 && index < 4) diff --git a/media-sound/nickvision-tagger/nickvision-tagger-2022.11.2.ebuild b/media-sound/nickvision-tagger/nickvision-tagger-2022.11.2.ebuild index 851dbba8b770..c743b5be40e7 100644 --- a/media-sound/nickvision-tagger/nickvision-tagger-2022.11.2.ebuild +++ b/media-sound/nickvision-tagger/nickvision-tagger-2022.11.2.ebuild @@ -30,6 +30,9 @@ RDEPEND=" media-libs/chromaprint[tools] " -PATCHES=( "${FILESDIR}"/${P}-meson-install.patch ) +PATCHES=( + "${FILESDIR}"/${P}-fix-narrowing.patch + "${FILESDIR}"/${P}-meson-install.patch +) DOCS=( README.md )
