From 14f2df2a72390c0075b5d7d8d2c129f3f628c42f Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sun, 22 Jan 2012 01:50:25 +0100 Subject: [PATCH] Remove compiler warning 'cast from pointer to integer of different size'. --- indra/libopenjpeg/dwt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/libopenjpeg/dwt.c b/indra/libopenjpeg/dwt.c index 9568f07ed..1d952c608 100644 --- a/indra/libopenjpeg/dwt.c +++ b/indra/libopenjpeg/dwt.c @@ -570,7 +570,7 @@ static void v4dwt_interleave_h(v4dwt_t* restrict w, float* restrict a, int x, in int count = w->sn; int i, k; for(k = 0; k < 2; ++k){ - if (count + 3 * x < size && ((int) a & 0x0f) == 0 && ((int) bi & 0x0f) == 0 && (x & 0x0f) == 0) { + if (count + 3 * x < size && ((long) a & 0x0f) == 0 && ((long) bi & 0x0f) == 0 && (x & 0x0f) == 0) { /* Fast code path */ for(i = 0; i < count; ++i){ int j = i;