From 1d0d673f78c5c03a0f3c97ceeb7686e9388e0611 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Sat, 7 Aug 2021 14:48:32 +0100 Subject: Add SvIsBOOL() macro to test for SVs being boolean-intent These are identified as being static shared COW strings whose string buffer points directly at PL_Yes / PL_No Define sv_setbool() and sv_setbool_mg() macros Use sv_setbool() where appropriate Have sv_dump() annotate when an SV's PV buffer is one of the PL_(Yes|No) special booleans --- pp_hot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pp_hot.c') diff --git a/pp_hot.c b/pp_hot.c index 43c61bd272..acb2616dda 100644 --- a/pp_hot.c +++ b/pp_hot.c @@ -1083,7 +1083,7 @@ PP(pp_multiconcat) if (!SvOK(right)) { if (ckWARN(WARN_UNINITIALIZED)) report_uninit(right); - sv_setsv_flags(left, &PL_sv_no, 0); + sv_setbool(left, FALSE); } else sv_setsv_flags(left, right, 0); -- cgit v1.2.1