diff options
author | Darin McBride <dmcbride@cpan.org> | 2014-06-13 13:59:02 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-06-14 14:43:51 -0600 |
commit | 414db8a1ac9a4c01b91536e866c6b00fa9c938af (patch) | |
tree | e0c39fe0a9da81a637a36cf44c9a788c3c8add98 /utf8.c | |
parent | c465fd2fb97ce5f0d13ec0f9e42b94e9ba501e81 (diff) | |
download | perl-414db8a1ac9a4c01b91536e866c6b00fa9c938af.tar.gz |
rmv duplicate SvUV call in Perl__swash_inversion_hash
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |