ringqueue.cpp: fix gcc6 build
This commit is contained in:
parent
5265115b17
commit
ab9903c56a
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue