Fix incorrect power of 2 check in last commit.

This commit is contained in:
Paul Pluzhnikov 2013-12-19 10:48:01 -08:00
parent 063b2acbce
commit b627fdd585

View File

@ -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);