diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-31 22:37:51 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-31 22:37:51 +0000 |
commit | d658dc55c1a5a1e82545e617134daabc3276b047 (patch) | |
tree | 1e3196d9044f9264e1c6c29e119a2b4eda561857 /pp.c | |
parent | c2a735686052c4e782e029afd2945461349272c6 (diff) | |
download | perl-d658dc55c1a5a1e82545e617134daabc3276b047.tar.gz |
buggy modulus on UVs introduced by change#3378 (resulted in
4063328477 % 65535 amounting to 27406, instead of 27407)
p4raw-link: @3378 on //depot/perl: 25da4f389200e19df8aa50bcef9af9506f48ed2e
p4raw-id: //depot/perl@6179
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -969,7 +969,7 @@ PP(pp_modulo) NV dright; NV dleft; - if (SvIOK(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)) { + if (SvIOK_notUV(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)) { IV i = SvIVX(POPs); right = (right_neg = (i < 0)) ? -i : i; } @@ -981,7 +981,7 @@ PP(pp_modulo) dright = -dright; } - if (!use_double && SvIOK(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)) { + if (!use_double && SvIOK_notUV(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)) { IV i = SvIVX(POPs); left = (left_neg = (i < 0)) ? -i : i; } |