projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063b2ac
)
Fix incorrect power of 2 check in last commit.
author
Paul Pluzhnikov
<ppluzhnikov@google.com>
Thu, 19 Dec 2013 18:48:01 +0000
(10:48 -0800)
committer
Paul Pluzhnikov
<ppluzhnikov@google.com>
Thu, 19 Dec 2013 18:48:01 +0000
(10:48 -0800)
elf/dl-misc.c
patch
|
blob
|
history
diff --git
a/elf/dl-misc.c
b/elf/dl-misc.c
index
e5c76a7
..
ad2d8ac
100644
(file)
--- 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);