Closed ahknight closed 8 years ago
A simple cast of cnt
to unsigned
does the trick, BTW.
I'm sorry to disagree about the evilness of that flag - without it, I wouldn't have heard about the problem until much later, as this library is not under active development. So it might create trouble for you, but for me it's quite helpful (well, assuming people submit bug reports, of course). Thanks for bringing it to my attention!
(And yes, there have been issues before with bugs due to sign comparison)
Actually, I'm wrong - I fixed this a while ago (8d76924) but I haven't released a new version. Thanks for the reminder, will do so tomorrow.
I've just pushed version 0.5.6, which should fix this issue. Thanks for the reminder and let me know if you have further issues.
Looks like warnings-as-errors strikes again. That flag is generally evil for source deployments for reasons like this, IMO (in development, whatever floats yer boat though).
(Does the same in clang 3.6.2 FWIW.)