]> wimlib.net Git - wimlib/blobdiff - src/lzx_common.c
v1.14.2-BETA2
[wimlib] / src / lzx_common.c
index 194e8162da2e4bc67eb91fc213b8c4a8b78ab3e2..48a34614362d505c5b555b479b585d334546ed6c 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this file; if not, see http://www.gnu.org/licenses/.
+ * along with this file; if not, see https://www.gnu.org/licenses/.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -288,7 +288,7 @@ lzx_e8_filter(u8 *data, u32 size, void (*process_target)(void *, s32))
                         * 'valid_mask' ensures we never process an E8 byte that
                         * was itself part of a translation target.  */
                        while ((e8_mask &= valid_mask)) {
-                               unsigned bit = ffs32(e8_mask);
+                               unsigned bit = bsf32(e8_mask);
                                (*process_target)(p + bit + 1, p + bit - data);
                                valid_mask &= ~((u64)0x1F << bit);
                        }