summaryrefslogtreecommitdiff
path: root/test/buffer-diff.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-08-08 01:16:49 -0700
committerCarl Worth <cworth@cworth.org>2006-08-08 01:16:49 -0700
commitc3b912d7db34c5881cf14725b7d29266cbf24877 (patch)
tree84188088e73c7caf74ffd2f80bb032739eeb491c /test/buffer-diff.c
parentc7d11ad2b4778cb7399eae990a410cb72568af11 (diff)
Eliminate most compiler warnings from the test suite
Diffstat (limited to 'test/buffer-diff.c')
-rw-r--r--test/buffer-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/buffer-diff.c b/test/buffer-diff.c
index 0244ecd0..5463c298 100644
--- a/test/buffer-diff.c
+++ b/test/buffer-diff.c
@@ -92,7 +92,7 @@ buffer_diff_core (unsigned char *_buf_a,
for (channel = 0; channel < 4; channel++) {
unsigned char value_a = (row_a[x] >> (channel*8));
unsigned char value_b = (row_b[x] >> (channel*8));
- unsigned char diff;
+ unsigned int diff;
diff = value_a - value_b;
diff *= 4; /* emphasize */
if (diff > 255)