So I\'m using size_t instead of int in any indexing for loop to prevent negative indices. But when counting down, this leads to an overflow:
size_t
int
for (size_t i = 10; i <= 10; --i) // do something
When overflow do happens, it will round to the largest integer and thus the condition will fail.