[vlc-commits] compat: ffsll use long long int as argument
Jean-Baptiste Kempf
git at videolan.org
Thu Dec 22 16:18:08 CET 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 21 17:41:12 2016 +0100| [95b7bf976a0970b605ece61e8c4a951e555404f6] | committer: Jean-Baptiste Kempf
compat: ffsll use long long int as argument
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95b7bf976a0970b605ece61e8c4a951e555404f6
---
compat/ffsll.c | 4 ++--
include/vlc_fixups.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/compat/ffsll.c b/compat/ffsll.c
index f35134a..428eacc 100644
--- a/compat/ffsll.c
+++ b/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)
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 3b80f9d..30fc0bd 100644
--- a/include/vlc_fixups.h
+++ b/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
More information about the vlc-commits
mailing list