This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The THINKFIRST check after the GMAGICAL check in sv_2iv_flags and
authorNicholas Clark <nick@ccl4.org>
Sat, 17 Dec 2005 11:44:47 +0000 (11:44 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 17 Dec 2005 11:44:47 +0000 (11:44 +0000)
sv_2uv_flags should have been else if.

p4raw-id: //depot/perl@26385

sv.c

diff --git a/sv.c b/sv.c
index f918d5a..f81f56f 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -1915,8 +1915,7 @@ Perl_sv_2iv_flags(pTHX_ register SV *sv, I32 flags)
        }
        assert(SvTYPE(sv) >= SVt_PVMG);
        /* This falls through to the report_uninit inside S_sv_2iuv_common.  */
-    }
-    if (SvTHINKFIRST(sv)) {
+    } else if (SvTHINKFIRST(sv)) {
        if (SvROK(sv)) {
        return_rok:
            if (SvAMAGIC(sv)) {
@@ -1989,8 +1988,7 @@ Perl_sv_2uv_flags(pTHX_ register SV *sv, I32 flags)
        }
        assert(SvTYPE(sv) >= SVt_PVMG);
        /* This falls through to the report_uninit inside S_sv_2iuv_common.  */
-    }
-    if (SvTHINKFIRST(sv)) {
+    } else if (SvTHINKFIRST(sv)) {
        if (SvROK(sv)) {
        return_rok:
            if (SvAMAGIC(sv)) {