Fix size_t->int conversion warning on 64-bit build.