summaryrefslogtreecommitdiff
blob: c568ed345ecd8068c432f3999883124740ae85ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Gentoo-Bug: https://bugs.gentoo.org/653752
Upstream issue: https://github.com/ImageMagick/ImageMagick/issues/1019


From 0c26fea274e615ff6b179bdd30e970a55f6c3f52 Mon Sep 17 00:00:00 2001
From: Svante Signell <svante.signell@gmail.com>
Date: Mon, 25 Jun 2018 16:06:19 +0200
Subject: Fix FTBFS on i386 any

bug-debian: https://bugs.debian.org/898914
---
 Magick++/tests/attributes.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Magick++/tests/attributes.cpp b/Magick++/tests/attributes.cpp
index 9ebc67f2d..e969def27 100644
--- a/Magick++/tests/attributes.cpp
+++ b/Magick++/tests/attributes.cpp
@@ -154,7 +154,7 @@ int main( int /*argc*/, char ** argv)
     //
 
     // Test default value.
-    if ( image.backgroundColor() != ColorRGB("white") )
+    if ( image.backgroundColor() != string(ColorRGB("white")) )
       {
 	++failures;
 	cout << "Line: " << __LINE__ << ", backgroundColor default ("
@@ -1068,7 +1068,7 @@ int main( int /*argc*/, char ** argv)
     // pixelColor
     //
     // Test default
-    if ( image.pixelColor(40,60) != canvasColor )
+    if ( image.pixelColor(40,60) != string(canvasColor) )
       {
 	++failures;
 	cout << "Line: " << __LINE__ << ", pixelColor default ("