projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92bda63
)
make more C89 compliant
author
Tony Cook
<tony@develop=help.com>
Tue, 10 Jan 2006 03:26:55 +0000
(
03:26
+0000)
committer
Tony Cook
<tony@develop=help.com>
Tue, 10 Jan 2006 03:26:55 +0000
(
03:26
+0000)
CountColor/CountColor.xs
patch
|
blob
|
blame
|
history
diff --git
a/CountColor/CountColor.xs
b/CountColor/CountColor.xs
index df4cf1d85072951c8f1bdac2d529fc86f8015c6d..f094261f135689dd06d332c5063c1855a5a690ba 100644
(file)
--- a/
CountColor/CountColor.xs
+++ b/
CountColor/CountColor.xs
@@
-22,8
+22,8
@@
count_color(i_img *im, i_color *color) {
for (x = 0; x < im->xsize; ++x) {
for (y = 0; y < im->ysize; ++y) {
- i_gpix(im, x, y, &c);
int match = 1;
+ i_gpix(im, x, y, &c);
for (chan = 0; chan < im->channels; ++chan) {
if (c.channel[chan] != color->channel[chan]) {
match = 0;