fix NO_TAINT_SUPPORT on g++
authorDavid Mitchell <davem@iabyn.com>
Mon, 5 Nov 2012 14:57:28 +0000 (14:57 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Nov 2012 14:57:28 +0000 (14:57 +0000)
A '&' got lost in the conversion

scope.c

index e93517a..3240800 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -818,7 +818,7 @@ Perl_leave_scope(pTHX_ I32 base)
            ptr = SSPOPPTR;
            *(bool*)ptr = cBOOL(uv >> 8);
 #if !NO_TAINT_SUPPORT
-           if (ptr == TAINT_get) {
+           if (ptr == &(TAINT_get)) {
                /* If we don't update <was>, to reflect what was saved on the
                 * stack for PL_tainted, then we will overwrite this attempt to
                 * restore it when we exit this routine.  Note that this won't