diff options
author | Karl Williamson <khw@cpan.org> | 2019-04-12 13:11:45 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-04-12 14:02:24 -0600 |
commit | 9354a41fcabd4d0b2d90807f6d1c1a87321cce00 (patch) | |
tree | ad95f9a000b6d908c00728dadfad53ba0e0f0f97 /pp_hot.c | |
parent | dfba4714a9dc4c35123b4df0a5e1721ccb081d97 (diff) | |
download | perl-9354a41fcabd4d0b2d90807f6d1c1a87321cce00.tar.gz |
pp_hot.c: Silence some MS VC warnings
These are bogus warnings.
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1526,7 +1526,9 @@ PP(pp_add) auv = aiv; auvok = 1; /* Now acting as a sign flag. */ } else { - auv = -(UV)aiv; + /* Using 0- here and later to silence bogus warning + * from MS VC */ + auv = (UV) (0 - (UV) aiv); } } a_valid = 1; @@ -1546,7 +1548,7 @@ PP(pp_add) buv = biv; buvok = 1; } else - buv = -(UV)biv; + buv = (UV) (0 - (UV) biv); } /* ?uvok if value is >= 0. basically, flagged as UV if it's +ve, else "IV" now, independent of how it came in. |