Browse Source

compat: ffsll use long long int as argument

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
pull/52/head
Jean-Baptiste Kempf 10 years ago
parent
commit
95b7bf976a
  1. 4
      compat/ffsll.c
  2. 2
      include/vlc_fixups.h

4
compat/ffsll.c

@ -1,5 +1,5 @@
/*****************************************************************************
* 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)

2
include/vlc_fixups.h

@ -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

Loading…
Cancel
Save