I'm trying to calculate a certain integral that in a specific regime has the form
$ \int_{0}^{\infty} \mathrm{d}k \int_{-\infty}^{+\infty} \mathrm{d}\sigma f(k) e^{i \sigma k} $
Since $f$ doesn't depend on sigma, I integrate the exponential to get $ 2 \pi \delta(k) $. But the point where the delta blows up is at the end point of the integral and I don't know if what I'm doing is actually valid. This integral is actually a part of a calculation that, if I do it naivelly, is giving me the wrong result by a factor of 1/2. Because of this question (and answer), Delta (Dirac) function integral, I'm suspicious that the problem lies with the delta there.
Can someone help me make sense of it?