Fix build error due to size being int64_t