summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-04-12 13:11:45 -0600
committerKarl Williamson <khw@cpan.org>2019-04-12 14:02:24 -0600
commit9354a41fcabd4d0b2d90807f6d1c1a87321cce00 (patch)
treead95f9a000b6d908c00728dadfad53ba0e0f0f97 /pp_hot.c
parentdfba4714a9dc4c35123b4df0a5e1721ccb081d97 (diff)
downloadperl-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 7c6b3a8fc9..7d5ffc02fd 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -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.