summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-06-27 01:44:43 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 05:14:43 -0600
commit298e8f0e4acd3b2173e34f3bb387f4a83cd16d1b (patch)
tree9fd4dab88d810455199ee2d203a734b05596de26 /utf8.c
parent8b5f2733d203f1d4c77d2a7e2250f5b63c17c9e9 (diff)
downloadperl-298e8f0e4acd3b2173e34f3bb387f4a83cd16d1b.tar.gz
utf8.c: Use C_ARRAY_LENGTH()
This macro is preferred to sizeof()
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 1be95015cb..791adacffd 100644
--- a/utf8.c
+++ b/utf8.c
@@ -3143,7 +3143,7 @@ Perl__to_uni_fold_flags(pTHX_ UV c, U8* p, STRLEN *lenp, U8 flags)
needs_full_generality:
uvchr_to_utf8(utf8_c, c);
- return _toFOLD_utf8_flags(utf8_c, utf8_c + sizeof(utf8_c),
+ return _toFOLD_utf8_flags(utf8_c, utf8_c + C_ARRAY_LENGTH(utf8_c),
p, lenp, flags);
}
}