Merge pull request #24 from robertbaldyga/fix-ffz

Fix _ffz() function
This commit is contained in:
Robert Bałdyga 2018-12-21 10:57:51 +01:00 committed by GitHub
commit 1b0b2597d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ static unsigned long _ffz(unsigned long word)
int i;
for (i = 0; i < sizeof(word)*8 && (word & 1); i++)
word <<= 1;
word >>= 1;
return i;
}