Closed AntonyCorbett closed 5 years ago
Thanks for the report!
True indeed, it looks odd, but relies on the unsigned integer overflow to wrap around to a large positive integer, which is why it was guaranteed to work
This may be from an older version though, it's no longer like that in here in this function:
https://github.com/lvandeve/lodepng/blob/master/lodepng.cpp
So should be in order now :) Closing this issue
The loop conditions seem odd in this utility function.