[PATCH] imaadp32.acm: Avoid ARRAY_SIZE-like macros

Andrew Eikum aeikum at codeweavers.com
Mon Jul 9 08:08:09 CDT 2018


On Thu, Jul 05, 2018 at 10:07:22PM +0200, Michael Stefaniuc wrote:
> @@ -93,11 +90,11 @@ static	DWORD	ADPCM_GetFormatIndex(const WAVEFORMATEX *wfx)
>      switch (wfx->wFormatTag)
>      {
>      case WAVE_FORMAT_PCM:
> -	hi = NUM_PCM_FORMATS;
> +        hi = ARRAY_SIZE(PCM_Formats);
>  	fmts = PCM_Formats;
>  	break;
>      case WAVE_FORMAT_IMA_ADPCM:
> -	hi = NUM_ADPCM_FORMATS;
> +        hi = ARRAY_SIZE(ADPCM_Formats);
>  	fmts = ADPCM_Formats;
>  	break;
>      default:

I'd prefer to keep this as tabs, to stay (more) consistent.

Andrew



More information about the wine-devel mailing list