A proof I'm reading tries to evaluate the integral (where $i$ is the regular imaginary unit)
$$\int_{-\infty}^{\infty} e^{-(x-\alpha i)^2}\mathrm{d}x$$
by doing a substitution $u=x-\alpha i$. Normally, one would also have to change the bounds of integration.
$$\int_{-\infty+\alpha i}^{\infty+\alpha i} e^{-x^2}\mathrm{d}x$$
But this proof leaves the bounds as +/- infinity.
$$\int_{-\infty}^{\infty} e^{-x^2}\mathrm{d}x$$
Why is this valid?