summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorDarin McBride <dmcbride@cpan.org>2014-06-13 13:59:02 -0700
committerKarl Williamson <khw@cpan.org>2014-06-14 14:43:51 -0600
commit414db8a1ac9a4c01b91536e866c6b00fa9c938af (patch)
treee0c39fe0a9da81a637a36cf44c9a788c3c8add98 /utf8.c
parentc465fd2fb97ce5f0d13ec0f9e42b94e9ba501e81 (diff)
downloadperl-414db8a1ac9a4c01b91536e866c6b00fa9c938af.tar.gz
rmv duplicate SvUV call in Perl__swash_inversion_hash
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/utf8.c b/utf8.c
index f8021996a5..cc799407ef 100644
--- a/utf8.c
+++ b/utf8.c
@@ -3405,15 +3405,17 @@ Perl__swash_inversion_hash(pTHX_ SV* const swash)
for (i = 0; i <= av_tindex(list); i++) {
SV** entryp = av_fetch(list, i, FALSE);
SV* entry;
+ UV uv;
if (entryp == NULL) {
Perl_croak(aTHX_ "panic: av_fetch() unexpectedly failed");
}
entry = *entryp;
- /*DEBUG_U(PerlIO_printf(Perl_debug_log, "list for %"UVXf" contains %"UVXf"\n", val, SvUV(entry)));*/
- if (SvUV(entry) == val) {
+ uv = SvUV(entry);
+ /*DEBUG_U(PerlIO_printf(Perl_debug_log, "list for %"UVXf" contains %"UVXf"\n", val, uv));*/
+ if (uv == val) {
found_key = TRUE;
}
- if (SvUV(entry) == inverse) {
+ if (uv == inverse) {
found_inverse = TRUE;
}