Skip to content

Commit

Permalink
doop.c: Call the macro instead of reinventing it
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jul 30, 2021
1 parent 0a93ef4 commit ec7f094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doop.c
Expand Up @@ -744,7 +744,7 @@ Perl_do_vecget(pTHX_ SV *sv, STRLEN offset, int size)

PERL_ARGS_ASSERT_DO_VECGET;

if (size < 1 || (size & (size-1))) /* size < 1 or not a power of two */
if (size < 1 || ! isPOWER_OF_2(size))
Perl_croak(aTHX_ "Illegal number of bits in vec");

if (SvUTF8(sv)) {
Expand Down

0 comments on commit ec7f094

Please sign in to comment.