Commit b20d572
Fix type conversions
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.
Fixes #78, #312
Credit kentnl-gentoo@b6b85401 parent 6d8687b commit b20d572
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4448 | 4448 | | |
4449 | 4449 | | |
4450 | 4450 | | |
4451 | | - | |
4452 | | - | |
| 4451 | + | |
4453 | 4452 | | |
4454 | 4453 | | |
4455 | 4454 | | |
| |||
4460 | 4459 | | |
4461 | 4460 | | |
4462 | 4461 | | |
4463 | | - | |
4464 | | - | |
| 4462 | + | |
4465 | 4463 | | |
4466 | 4464 | | |
4467 | 4465 | | |
4468 | | - | |
4469 | | - | |
| 4466 | + | |
4470 | 4467 | | |
4471 | 4468 | | |
4472 | 4469 | | |
| |||
0 commit comments