summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2016-12-23 23:53:19 -0600
committerAaron Crane <arc@cpan.org>2017-01-04 19:02:22 +0000
commitdefe49c83c8b8fb5b6f8675972f524ba46660752 (patch)
treebce31607f5c9b295cb74bfc31c3601cc797e2a24 /sv.c
parentf1cba94566d20fce5f608ead96b2febbbf4e1cda (diff)
downloadperl-defe49c83c8b8fb5b6f8675972f524ba46660752.tar.gz
Remove unnecessary pointer math.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 83d82fc721..42e34410ed 100644
--- a/sv.c
+++ b/sv.c
@@ -2915,8 +2915,8 @@ S_infnan_2pv(NV nv, char* buffer, size_t maxlen, char plus) {
return 0;
}
assert((s == buffer + 3) || (s == buffer + 4));
- *s++ = 0;
- return s - buffer - 1; /* -1: excluding the zero byte */
+ *s = 0;
+ return s - buffer;
}
/*