Skip to content
Myr

Fix VS2019 warning

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- VS2019 on /W4 warns about applying '*' to enums. Fixed by casting to int.

authored by Nathan Reed · committed by Nathan Reed · parent f67165c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:stb_image_resize.h+1 added-1 removed
1236 unmodified lines
1237 // it okay to use negative indexes on the decode buffer.1238 return &stbir_info->decode_buffer[stbir_info->horizontal_filter_pixel_margin * stbir_info->channels];1239}12401241#define STBIR__DECODE(type, colorspace) ((type) * (STBIR_MAX_COLORSPACES) + (colorspace))1241#define STBIR__DECODE(type, colorspace) ((int)(type) * (STBIR_MAX_COLORSPACES) + (int)(colorspace))12421243static void stbir__decode_scanline(stbir__info* stbir_info, int n)1244{1245 int c;
1385 unmodified lines