diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2013-12-19 10:48:01 -0800 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2013-12-19 10:48:01 -0800 |
commit | b627fdd58554bc36bd344dc40a8787c4b7a9cc46 (patch) | |
tree | 7dfefb2db8be30450d8687b5ef73e27d0b622002 /elf | |
parent | 063b2acbce83549df82ab30f5af573f1b9c4bd19 (diff) | |
download | glibc-b627fdd58554bc36bd344dc40a8787c4b7a9cc46.tar.gz |
Fix incorrect power of 2 check in last commit.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-misc.c b/elf/dl-misc.c index e5c76a75a0..ad2d8ac964 100644 --- a/elf/dl-misc.c +++ b/elf/dl-misc.c @@ -396,7 +396,7 @@ __signal_safe_memalign (size_t boundary, size_t size) boundary = sizeof (*header); /* Boundary must be a power of two. */ - if ((boundary & (boundary - 1)) == 0) + if (!powerof2(boundary)) return NULL; size_t pg = GLRO (dl_pagesize); |