mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
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 must be a power of two. */
|
||||
if ((boundary & (boundary - 1)) == 0)
|
||||
if (!powerof2(boundary))
|
||||
return NULL;
|
||||
|
||||
size_t pg = GLRO (dl_pagesize);
|
||||
|
Loading…
Reference in New Issue
Block a user