diff options
author | Brian Paul <brianp@vmware.com> | 2012-07-31 10:57:22 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-07-31 12:46:44 -0600 |
commit | 1c13336c1c5d1310087ebb191eaefd9e452ae822 (patch) | |
tree | dccebf7f4df2b22f36e514cba6e517c8e554811e | |
parent | f4df91ca23fdcd42d4918a08d6f8dc2bcd253e28 (diff) |
Using void pointers for pointer arithmetic doesn't work. Fixes:
tests\util\piglit_ktx.c(333) : error C2036: 'void *' : unknown size
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=53013
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
-rw-r--r-- | tests/util/piglit_ktx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util/piglit_ktx.c b/tests/util/piglit_ktx.c index 13a3d9118..4c6748963 100644 --- a/tests/util/piglit_ktx.c +++ b/tests/util/piglit_ktx.c @@ -325,7 +325,7 @@ piglit_ktx_parse_images(struct piglit_ktx *self) /* Begin parsing first image. */ image = &self->images[0]; -#define CUR_SIZE ((void*) p.u8 - self->data) +#define CUR_SIZE (p.u8 - (uint8_t *) self->data) for (miplevel = 0; miplevel < info->num_miplevels; ++miplevel) { uint32_t image_size; |