Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calling SvNV() for magical scalar is not enough for float type conversion. It caused problem for Amavis in tainted mode -- all float values were zero. On the other hand SvIV() and SvUV() seems to work fine. To be sure that correct value of float is in scalar use sv_setnv() with explicit NV float value. Similar code is changed also for integers IV/UV. This patch should fix reported Amavis bug: perl5-dbi#78 See also reported perl bug about SvNV(): https://rt.perl.org/Public/Bug/Display.html?id=130801
- Loading branch information