Change `int numComponents` to `size_t numComponents` for 64-bit compatibility.