Don't mix "size_t" and "unsigned" and don't use "%lu" for printing "size_t" values as this doesn't work under Win64 where sizeof(size_t) is 8 while sizeof(unsigned long) is still just 4.
Don't mix "size_t" and "unsigned" and don't use "%lu" for printing "size_t" values as this doesn't work under Win64 where sizeof(size_t) is 8 while sizeof(unsigned long) is still just 4.