Fix VS2019 warning

- VS2019 on /W4 warns about applying '*' to enums. Fixed by casting to int.
This commit is contained in:
Nathan Reed 2019-11-30 14:36:51 -08:00
parent f67165c2bb
commit 4306eea3cb

View File

@ -1238,7 +1238,7 @@ static float* stbir__get_decode_buffer(stbir__info* stbir_info)
return &stbir_info->decode_buffer[stbir_info->horizontal_filter_pixel_margin * stbir_info->channels];
}
#define STBIR__DECODE(type, colorspace) ((type) * (STBIR_MAX_COLORSPACES) + (colorspace))
#define STBIR__DECODE(type, colorspace) ((int)(type) * (STBIR_MAX_COLORSPACES) + (int)(colorspace))
static void stbir__decode_scanline(stbir__info* stbir_info, int n)
{