summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-08-23 17:50:11 -0600
committerKarl Williamson <khw@cpan.org>2014-08-25 11:13:40 -0600
commit5b26a7b38f5eacab94ffc56c123c01ad6c3788dc (patch)
treeb3d55360a7efaa4ef4d00def42a3da2d6adca541
parente498d484a15e57b4020cfab88ec97f4f4eaa3ecb (diff)
downloadperl-5b26a7b38f5eacab94ffc56c123c01ad6c3788dc.tar.gz
sv.c: Silence VMS compiler warning
The result of this must be at least 0 as the type is unsigned, so the compiler gives a warning.
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 761addb42b..fd7e9f57a5 100644
--- a/sv.c
+++ b/sv.c
@@ -3495,7 +3495,7 @@ must_be_utf8:
* set so starts from there. Otherwise, can use memory copy to
* get up to where we are now, and then start from here */
- if (invariant_head <= 0) {
+ if (invariant_head == 0) {
d = dst;
} else {
Copy(s, dst, invariant_head, char);