Make tot_size a size_t to fix a build warning