I am going through a paper by Witten and I got confused in the point where the topology of the $B$-field is discussed.
In the first paragraph of page 11, it is explained that when discrete torsion is taken into account, the cohomology class of the $B$-field changes from $H^{3}(\mathcal{M},\mathbb{R})$ to $H^{3}(\mathcal{M},\mathbb{Z})$. I understand the cohomology classes and more or less what is the effect of discrete torsion, but I cannot realize why the cohomology changes in this way under discrete torsion. (namely why $\mathbb{R}\rightarrow\mathbb{Z}$)