nothings / stb

stb single-file public domain libraries for C/C++
https://twitter.com/nothings
Other
25.83k stars 7.66k forks source link

Fix arraddnindex() GCC sign-compare warning #1567

Open arkanis opened 8 months ago

arkanis commented 8 months ago

Also fixes the warning in arrinsn() (where I encountered it).

Just changed stbds_arrlen() to stbds_arrlenu() which doesn't cast to a signed value. Keeping the entire expression unsigned. Warning was probably caused by commit 2af2e692197267092f737db562817231feb3b5be.