From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/nickvision-tagger/, media-sound/nickvision-tagger/files/
Date: Tue, 28 Feb 2023 18:03:21 +0000 (UTC) [thread overview]
Message-ID: <1677607398.e6d5f5f83b69d689c501c45761b839bfda02caca.xgqt@gentoo> (raw)
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?= <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 )
next reply other threads:[~2023-02-28 18:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-28 18:03 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-06 22:36 [gentoo-commits] repo/gentoo:master commit in: media-sound/nickvision-tagger/, media-sound/nickvision-tagger/files/ Maciej Barć
2025-01-03 9:33 Maciej Barć
2023-02-17 23:39 Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1677607398.e6d5f5f83b69d689c501c45761b839bfda02caca.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox