Fix 64 bit issue: sizeof(size_t) != sizeof(int).