summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 9a9a449eeb..d1a01c56f2 100644
--- a/sv.c
+++ b/sv.c
@@ -9392,7 +9392,7 @@ Perl_newSVuv(pTHX_ const UV u)
/* We're starting from SVt_FIRST, so provided that's
* actual 0, we don't have to unset any SV type flags
* to promote to SVt_IV. */
- assert(SVt_FIRST == 0);
+ STATIC_ASSERT_STMT(SVt_FIRST == 0);
SET_SVANY_FOR_BODYLESS_IV(sv);
SvFLAGS(sv) |= SVt_IV;
@@ -9447,7 +9447,7 @@ Perl_newRV_noinc(pTHX_ SV *const tmpRef)
/* We're starting from SVt_FIRST, so provided that's
* actual 0, we don't have to unset any SV type flags
* to promote to SVt_IV. */
- assert(SVt_FIRST == 0);
+ STATIC_ASSERT_STMT(SVt_FIRST == 0);
SET_SVANY_FOR_BODYLESS_IV(sv);
SvFLAGS(sv) |= SVt_IV;