summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-03 22:52:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-03 22:52:58 +0100
commit3914c8e5b2181dd2ca5c1d3212f26268f508d6e9 (patch)
treec9dfcbde3d010ea61cb513f9ef317c33de2d7c5f
parenta52f4cea1f94a6dc363c98f96327d700503b4d08 (diff)
[test] fix bad merge in previous commit
Missed the conversion of row from char to int.
-rw-r--r--test/any2ppm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/any2ppm.c b/test/any2ppm.c
index 3b590d943..5ab98c474 100644
--- a/test/any2ppm.c
+++ b/test/any2ppm.c
@@ -196,13 +196,13 @@ write_ppm (cairo_surface_t *surface, int fd)
len = sprintf (buf, "%s %d %d 255\n", format_str, width, height);
for (j = 0; j < height; j++) {
- const unsigned char *row = data + stride * j;
+ const unsigned int *row = (unsigned int *) (data + stride * j);
switch ((int) format) {
case CAIRO_FORMAT_ARGB32:
len = _write (fd,
buf, sizeof (buf), len,
- row, 4 * width);
+ (unsigned char *) row, 4 * width);
break;
case CAIRO_FORMAT_RGB24:
for (i = 0; i < width; i++) {
@@ -219,7 +219,7 @@ write_ppm (cairo_surface_t *surface, int fd)
case CAIRO_FORMAT_A8:
len = _write (fd,
buf, sizeof (buf), len,
- row, width);
+ (unsigned char *) row, width);
break;
}
if (len < 0)