summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-11-04 13:05:09 +0100
committerBenjamin Otte <otte@gnome.org>2008-11-04 13:05:09 +0100
commit912799c9779bb185ecee62308a03bb06a2e138bd (patch)
tree0655798b900c1d9a6514aa6baefbb60b20212782
parent5a0eee23234820e60dc4c175ac693015240fad9e (diff)
fix cast alignment warning in testing code
-rw-r--r--test/swfdec_test_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/swfdec_test_image.c b/test/swfdec_test_image.c
index b54f713a..98cd5591 100644
--- a/test/swfdec_test_image.c
+++ b/test/swfdec_test_image.c
@@ -99,9 +99,9 @@ buffer_diff_core (unsigned char *buf_a,
guint32 *row_a, *row_b, *row;
for (y = 0; y < height; y++) {
- row_a = (guint32 *) (buf_a + y * stride_a);
- row_b = (guint32 *) (buf_b + y * stride_b);
- row = (guint32 *) (buf_diff + y * stride_diff);
+ row_a = (guint32 *) (gpointer) (buf_a + y * stride_a);
+ row_b = (guint32 *) (gpointer) (buf_b + y * stride_b);
+ row = (guint32 *) (gpointer) (buf_diff + y * stride_diff);
for (x = 0; x < width; x++) {
/* check if the pixels are the same */
if (row_a[x] != row_b[x]) {