Skip to content

Commit

Permalink
locale.c: Change assert() into STATIC_ASSERT()
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 9, 2021
1 parent ee6fad7 commit 2553cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale.c
Expand Up @@ -4643,7 +4643,7 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
# ifdef LC_ALL
assert(categories[LC_ALL_INDEX_] == LC_ALL);
assert(strEQ(category_names[LC_ALL_INDEX_], "LC_ALL"));
assert(NOMINAL_LC_ALL_INDEX == LC_ALL_INDEX_);
STATIC_ASSERT_STMT(NOMINAL_LC_ALL_INDEX == LC_ALL_INDEX_);
# ifdef USE_POSIX_2008_LOCALE
assert(category_masks[LC_ALL_INDEX_] == LC_ALL_MASK);
# endif
Expand Down

0 comments on commit 2553cbf

Please sign in to comment.