From 45d6bfc0a1065fd0bfd64d6de210fe08b16725f9 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Sat, 24 Jun 2017 14:57:36 +0200 Subject: [PATCH] paranoia: parenthesize macro parameters --- cop.h | 2 +- pp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cop.h b/cop.h index ce688ab..2be8fb1 100644 --- a/cop.h +++ b/cop.h @@ -1016,7 +1016,7 @@ typedef struct stackinfo PERL_SI; #endif #if defined DEBUGGING && !defined DEBUGGING_RE_ONLY -# define PUSHSTACK_INIT_HWM(si) si->si_stack_hwm = 0 +# define PUSHSTACK_INIT_HWM(si) ((si)->si_stack_hwm = 0) #else # define PUSHSTACK_INIT_HWM(si) NOOP #endif diff --git a/pp.h b/pp.h index e763b2e..55efa0b 100644 --- a/pp.h +++ b/pp.h @@ -351,7 +351,7 @@ Does not use C. See also C>, C> and C>. * this just gives a safe false positive */ -# define _EXTEND_NEEDS_GROW(p,n) ((n) < 0 || PL_stack_max - p < (n)) +# define _EXTEND_NEEDS_GROW(p,n) ((n) < 0 || PL_stack_max - (p) < (n)) /* EXTEND_SKIP(): used for where you would normally call EXTEND(), but -- 1.8.3.1