diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-02-28 19:02:59 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-02-28 19:03:18 +0100 |
commit | e6d5f5f83b69d689c501c45761b839bfda02caca (patch) | |
tree | 5cc1f60e3d97d598609c96ea38e88f9ad694f4c9 /media-sound | |
parent | net-misc/ytmdl: bump to 2023.2.28 (diff) | |
download | gentoo-e6d5f5f83b69d689c501c45761b839bfda02caca.tar.gz gentoo-e6d5f5f83b69d689c501c45761b839bfda02caca.tar.bz2 gentoo-e6d5f5f83b69d689c501c45761b839bfda02caca.zip |
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@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/nickvision-tagger/files/nickvision-tagger-2022.11.2-fix-narrowing.patch | 27 | ||||
-rw-r--r-- | media-sound/nickvision-tagger/nickvision-tagger-2022.11.2.ebuild | 5 |
2 files changed, 31 insertions, 1 deletions
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?= <xgqt@gentoo.org> +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ć <xgqt@gentoo.org> +--- + 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 ) |