From d024465fe3cc8e4457de17ba501f5b28a53f0872 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 13 Jul 2010 15:11:54 +1000 Subject: [PATCH] new is a reserved word in C++, don't use it as a variable name Fix a cause of black smoke for C++ builds. --- ext/XS-APItest/APItest.xs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs index 2f2a8a7..3b90d95 100644 --- a/ext/XS-APItest/APItest.xs +++ b/ext/XS-APItest/APItest.xs @@ -256,13 +256,13 @@ blockhook_csc_start(pTHX_ int full) if (cur) { I32 i; - AV *const new = newAV(); + AV *const new_av = newAV(); for (i = 0; i <= av_len(cur); i++) { - av_store(new, i, newSVsv(*av_fetch(cur, i, 0))); + av_store(new_av, i, newSVsv(*av_fetch(cur, i, 0))); } - GvAV(MY_CXT.cscgv) = new; + GvAV(MY_CXT.cscgv) = new_av; } } -- 2.7.4