mirror of git://sourceware.org/git/glibc.git
Fix incorrect power of 2 check in last commit.
This commit is contained in:
parent
063b2acbce
commit
b627fdd585
|
@ -396,7 +396,7 @@ __signal_safe_memalign (size_t boundary, size_t size)
|
||||||
boundary = sizeof (*header);
|
boundary = sizeof (*header);
|
||||||
|
|
||||||
/* Boundary must be a power of two. */
|
/* Boundary must be a power of two. */
|
||||||
if ((boundary & (boundary - 1)) == 0)
|
if (!powerof2(boundary))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
size_t pg = GLRO (dl_pagesize);
|
size_t pg = GLRO (dl_pagesize);
|
||||||
|
|
Loading…
Reference in New Issue