summaryrefslogtreecommitdiff
path: root/pp.h
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2022-06-03 12:42:50 +0100
committerHugo van der Sanden <hv@crypt.org>2022-06-06 18:59:50 +0100
commitc31ae9a243a483ee972d34e51cfaca9525f50d05 (patch)
tree3a30b26677cf6313f801536448b04e5bdf58fa67 /pp.h
parent94ef987f1061fc9dc7d095d4805194ce90ea33e0 (diff)
downloadperl-c31ae9a243a483ee972d34e51cfaca9525f50d05.tar.gz
Rename variable in EXTEND_HWM_SET
"ix" is a common variable name in XS code, and may be passed in as part of a parameter.
Diffstat (limited to 'pp.h')
-rw-r--r--pp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/pp.h b/pp.h
index d773e3f172..3fa2bdaef8 100644
--- a/pp.h
+++ b/pp.h
@@ -316,11 +316,11 @@ Does not use C<TARG>. See also C<L</XPUSHu>>, C<L</mPUSHu>> and C<L</PUSHu>>.
* requested to be extended (which is likely to be less than PL_stack_max)
*/
#if defined DEBUGGING && !defined DEBUGGING_RE_ONLY
-# define EXTEND_HWM_SET(p, n) \
- STMT_START { \
- SSize_t ix = (p) - PL_stack_base + (n); \
- if (ix > PL_curstackinfo->si_stack_hwm) \
- PL_curstackinfo->si_stack_hwm = ix; \
+# define EXTEND_HWM_SET(p, n) \
+ STMT_START { \
+ SSize_t extend_hwm_set_ix = (p) - PL_stack_base + (n); \
+ if (extend_hwm_set_ix > PL_curstackinfo->si_stack_hwm) \
+ PL_curstackinfo->si_stack_hwm = extend_hwm_set_ix; \
} STMT_END
#else
# define EXTEND_HWM_SET(p, n) NOOP