[x264-devel] Re: [PATCH] fix the compiler warning

Loren Merritt lorenm at u.washington.edu
Thu Jan 11 05:41:49 CET 2007


On Thu, 11 Jan 2007, Limin Wang wrote:

> -if( !array_non_zero( (int*)dct2x2, sizeof(dct2x2)/sizeof(int) ))
> +if( !array_int16_non_zero( (int16_t*)dct2x2, sizeof(dct2x2)/sizeof(int) ))

(a) wrong, it would be
   if( !array_int16_non_zero( (int16_t*)dct2x2, sizeof(dct2x2)/sizeof(int16_t) ))

(b) I'm not willing to add code just to shut up a gcc warning. If it's 
that important, I'll make array_non_zero take a void* instead of separate 
versions per type.

--Loren Merritt

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list