in `memswap`: `int` -> `size_t`