Use %llu for all size_t printing. Cast size_t to uint64_t. This will hopefully shutup mingw, which doesn't support c99's %z.