Commit 95b7bf97 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

compat: ffsll use long long int as argument

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 368f85d5
/*****************************************************************************
* ffsllp.c: GNU ffsll() replacement
* ffsll.c: GNU ffsll() replacement
*****************************************************************************
* Copyright © 2015 Rémi Denis-Courmont
*
......@@ -24,7 +24,7 @@
#include <limits.h>
int ffsll(unsigned long long x)
int ffsll(long long x)
{
for (unsigned i = 0; i < sizeof (x) * CHAR_BIT; i++)
if ((x >> i) & 1)
......
......@@ -144,7 +144,7 @@ int vasprintf (char **, const char *, va_list);
/* string.h */
#ifndef HAVE_FFSLL
int ffsll(unsigned long long);
int ffsll(long long);
#endif
#ifndef HAVE_MEMRCHR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment