From 958cdd9919ef4262f89b30453aa9f16ba5de3b45 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 18 Jul 2021 17:23:58 -0600 Subject: [PATCH] doop.c: Call the macro instead of reinventing it --- doop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doop.c b/doop.c index a27d69a39040..304f6344f780 100644 --- a/doop.c +++ b/doop.c @@ -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)) {