Skip to content

Commit

Permalink
compat: ffsll use long long int as argument
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
jbkempf committed Dec 22, 2016
1 parent 368f85d commit 95b7bf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compat/ffsll.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*****************************************************************************
* ffsllp.c: GNU ffsll() replacement
* ffsll.c: GNU ffsll() replacement
*****************************************************************************
* Copyright © 2015 Rémi Denis-Courmont
*
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion include/vlc_fixups.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95b7bf9

Please sign in to comment.