summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2014-11-29 12:17:05 +0100
committerFather Chrysostomos <sprout@cpan.org>2014-11-29 06:11:08 -0800
commit6d59e610a3f269be73ffea56a90d1cd7dc8bf2fd (patch)
tree3323ee9f84c4e0909c8066796c8ea4bfa4e36bbd /pp_hot.c
parente59642234eb8b658c16fed728636bfbbc49c4514 (diff)
downloadperl-6d59e610a3f269be73ffea56a90d1cd7dc8bf2fd.tar.gz
define and use STATIC_ASSERT_STMT for compile-time invariants
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 846c1af882..48cc1cbea7 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -386,7 +386,7 @@ PP(pp_padrange)
(base << (OPpPADRANGE_COUNTSHIFT + SAVE_TIGHT_SHIFT))
| (count << SAVE_TIGHT_SHIFT)
| SAVEt_CLEARPADRANGE);
- assert(OPpPADRANGE_COUNTMASK + 1 == (1 <<OPpPADRANGE_COUNTSHIFT));
+ STATIC_ASSERT_STMT(OPpPADRANGE_COUNTMASK + 1 == (1 << OPpPADRANGE_COUNTSHIFT));
assert((payload >> (OPpPADRANGE_COUNTSHIFT+SAVE_TIGHT_SHIFT)) == base);
{
dSS_ADD;