ringqueue.cpp: fix gcc6 build

This commit is contained in:
Murai Takashi 2016-05-05 17:14:16 +09:00 committed by Alexander von Gluck IV
parent 5265115b17
commit ab9903c56a
1 changed files with 5 additions and 3 deletions

View File

@ -37,9 +37,11 @@ compute_order(unsigned long size)
int order;
unsigned long tmp;
for (order = 0, tmp = size; tmp >>= 1; ++order);
if (size & ~(1 << order))
++order;
return order;
if (size & ~(1 << order))
++order;
return order;
}