summarylogtreecommitdiffstats
path: root/0001-Invalid-operands-to-binary-operator-in-findNextColor.patch
diff options
context:
space:
mode:
authorMoritz Lipp2015-06-23 11:16:26 +0200
committerMoritz Lipp2015-06-23 11:16:56 +0200
commit588245e751c92d6c9a7b25cdbc5f6e5905f73ae3 (patch)
tree1ac90ab1f73f8ce4e6ad08eed7ee96bf0207a64f /0001-Invalid-operands-to-binary-operator-in-findNextColor.patch
parent39d42d02e80fef796033bb74feb01630c963cfe7 (diff)
downloadaur-588245e751c92d6c9a7b25cdbc5f6e5905f73ae3.tar.gz
Update to 0.23
Diffstat (limited to '0001-Invalid-operands-to-binary-operator-in-findNextColor.patch')
-rw-r--r--0001-Invalid-operands-to-binary-operator-in-findNextColor.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-Invalid-operands-to-binary-operator-in-findNextColor.patch b/0001-Invalid-operands-to-binary-operator-in-findNextColor.patch
new file mode 100644
index 000000000000..5a4150ad868a
--- /dev/null
+++ b/0001-Invalid-operands-to-binary-operator-in-findNextColor.patch
@@ -0,0 +1,29 @@
+From c4b0c614e0989eeaa11853edab427a08810ccfb7 Mon Sep 17 00:00:00 2001
+From: Moritz Lipp <mlq@pwmt.org>
+Date: Tue, 23 Jun 2015 11:02:07 +0200
+Subject: [PATCH] Invalid operands to binary operator in findNextColor
+
+---
+ utils/eye4graphics.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/utils/eye4graphics.cc b/utils/eye4graphics.cc
+index ac9594e..3c5ddaa 100644
+--- a/utils/eye4graphics.cc
++++ b/utils/eye4graphics.cc
+@@ -568,9 +568,9 @@ int findNextColor(BoundingBox* bbox,
+ bbox->right = x;
+ bbox->top = y;
+ bbox->bottom = y;
+- bbox->error = (((hay_pixel.red & 0xff) << 16) +
+- ((hay_pixel.green & 0xff) << 8) +
+- (hay_pixel.blue & 0xff));
++ bbox->error = ((((int) hay_pixel.red & 0xff) << 16) +
++ (((int) hay_pixel.green & 0xff) << 8) +
++ ((int) hay_pixel.blue & 0xff));
+ return 1;
+ }
+ }
+--
+2.4.4
+