Describe the bug
After some recent changes to stb_image.h file, when compiling with MSVC set to treat all warnings as errors, this library fails to compile at these lines with this message: warning C4244: 'argument': conversion from '...' to '...', possible loss of data
Describe the bug After some recent changes to stb_image.h file, when compiling with MSVC set to treat all warnings as errors, this library fails to compile at these lines with this message:
warning C4244: 'argument': conversion from '...' to '...', possible loss of data
Expected behavior Compilation with no warnings, the easiest fix would be to explicitly cast these variables.
Linked my pr as I am trying to fix it.