Depending on compiler and bitness, size_t and uint64_t can be different types. Since uint64_t format is used explicitly cast size_t to uint64_t to solve compiler warning. Happens with Clang 15 on macOS.