aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 14:18:00 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-08-28 14:18:00 +0900
commit0337514b8f0e484c11b668d8ca0e0af998d3dfbc (patch)
treeb2bc804c6dd6c0643dd812915fcc5c02c7d5a3b5
parent763816814bc072b19f1178e0d92031217d7f5f06 (diff)
kodakaio: fix [-Werror=sign-compare] compiler warning
-rw-r--r--backend/kodakaio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/kodakaio.c b/backend/kodakaio.c
index d414a7c..92b364c 100644
--- a/backend/kodakaio.c
+++ b/backend/kodakaio.c
@@ -1384,9 +1384,9 @@ But it seems that the scanner takes care of that, and gives you the ack as a sep
DBG(min(1,DBG_READ), "%s: tiny read, got %lu bytes of %lu\n", __func__, (unsigned long) bytecount, (unsigned long) *len);
return SANE_STATUS_IO_ERROR;
}
- if (*len > s->params.bytes_per_line) {
+ lines = *len / s->params.bytes_per_line;
+ if (lines > 1) {
/* store average colour as background. That's not the ideal method but it's easy to implement. What's it used for? */
- lines = *len / s->params.bytes_per_line;
s->background[0] = 0;
s->background[1] = 0;
s->background[2] = 0;