diff options
author | Moritz Lipp | 2015-06-23 11:16:26 +0200 |
---|---|---|
committer | Moritz Lipp | 2015-06-23 11:16:56 +0200 |
commit | 588245e751c92d6c9a7b25cdbc5f6e5905f73ae3 (patch) | |
tree | 1ac90ab1f73f8ce4e6ad08eed7ee96bf0207a64f /0001-Invalid-operands-to-binary-operator-in-findNextColor.patch | |
parent | 39d42d02e80fef796033bb74feb01630c963cfe7 (diff) | |
download | aur-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.patch | 29 |
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 + |