media-sound/nted: fix -Wnarrowing error, bug #594056
authorKacper Kołodziej <kacper@kolodziej.in>
Sun, 18 Sep 2016 09:13:43 +0000 (11:13 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 18 Sep 2016 10:03:39 +0000 (12:03 +0200)
Gentoo-bug: 594056
Closes: https://github.com/gentoo/gentoo/pull/2353

Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/nted/files/nted-1.10.18-cpp14.patch [new file with mode: 0644]
media-sound/nted/nted-1.10.18-r3.ebuild

diff --git a/media-sound/nted/files/nted-1.10.18-cpp14.patch b/media-sound/nted/files/nted-1.10.18-cpp14.patch
new file mode 100644 (file)
index 0000000..04a2a15
--- /dev/null
@@ -0,0 +1,11 @@
+--- idiotseditor/idiotseditor.cpp.dist 2016-09-18 10:47:58.933319888 +0200
++++ idiotseditor/idiotseditor.cpp      2016-09-18 10:48:28.852321336 +0200
+@@ -2538,7 +2538,7 @@
+ 
+ #define BAR_COLOR 0, 0, 0
+ #define NOMINATOR_COLOR 0, 0, 204
+-#define HALF_COLOR 0.0, 26, 153
++#define HALF_COLOR 0, 26, 153
+ #define QUARTER_COLOR  0, 51, 127
+ #define EIGHTS_COLOR 127, 77, 102
+ #define COLOR_16 0, 102, 77
index 495a5d2254ae8463f534020989d3795c742450e6..ddf328536f58b5480171d22d2a110f683954fcb0 100644 (file)
@@ -41,6 +41,7 @@ PATCHES=(
        "${FILESDIR}/${P}-lilypond-tremolo.patch" # bug #437540
        "${FILESDIR}/${P}-automake-1.12.patch" # bug #459466
        "${FILESDIR}/${P}-freetype.patch" # bug #514522
+       "${FILESDIR}/${P}-cpp14.patch" # bug #594056
 )
 
 src_prepare() {