Closed tomdov closed 4 years ago
https://en.cppreference.com/w/c/types/size_t
size_it is unsigned. It is not possible to return negative numbers.
correct, the returned number just will be huge and not correct
Then is it correct indeed. If it is huge. Its is a correctly huge value. What's wrong with that?
I just realized what you meant: there is an underflow on the substraction if the stacktrace is smaller than skip_n_firsts()
.
this will cause super-mega long loop (from ~max size_t till 0)