substitute ffs()
windows libraries seem to lack this nice function
This commit is contained in:
@@ -668,7 +668,7 @@ void edittype(int type)
|
||||
loopv(sels)
|
||||
{
|
||||
block &sel = sels[i];
|
||||
if(type == CORNER && (sel.xs != sel.ys || sel.xs != (1 << (ffs(sel.xs) - 1)) || (sel.x | sel.y) & (sel.xs - 1)))
|
||||
if(type == CORNER && (sel.xs != sel.ys || (sel.xs != 1 && sel.xs != 2 && sel.xs != 4 && sel.xs != 8 && sel.xs != 16) || (sel.x | sel.y) & (sel.xs - 1)))
|
||||
conoutf("corner selection must be power of 2 aligned");
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user