jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
373 stars 35 forks source link

Fix two compiler warnings in ogt_vox.h #12

Closed jorgenpt closed 3 years ago

jorgenpt commented 3 years ago

Building with MSVS 2019, the following warnings were being generated:

  1. ogt_vox.h(873, 31): [C4245] 'argument': conversion from 'int' to 'const T', signed/unsigned mismatch
  2. ogt_vox.h(1504, 111): [C4244] 'return': conversion from 'uint32_t' to 'uint8_t', possible loss of data
jpaver commented 3 years ago

Ah, good old /W4 -- thanks for the fix, it looks good!