summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-08-10 16:03:16 -0600
committerKarl Williamson <khw@cpan.org>2017-11-08 20:21:44 -0700
commitcb9da808be7106e6164fb99580a0466145b3cfe8 (patch)
tree007e6fee693514ad2985ed507cc6f6b959b952ca /toke.c
parent624504c5a60da0880a7d1d6d3e66f65c68ba28ae (diff)
downloadperl-cb9da808be7106e6164fb99580a0466145b3cfe8.tar.gz
toke.c: Add comment
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index fd972929fb..79df0bcbc5 100644
--- a/toke.c
+++ b/toke.c
@@ -11906,6 +11906,8 @@ S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen)
}
}
+ /* 'chars' isn't quite the right name, as code points above 0xFFFF
+ * require 4 bytes per char */
chars = SvCUR(utf16_buffer) >> 1;
have = SvCUR(utf8_buffer);