]> git.sesse.net Git - vlc/commitdiff
Fix Win64 patch for ebml
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Aug 2009 22:51:47 +0000 (00:51 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Aug 2009 22:51:47 +0000 (00:51 +0200)
extras/contrib/src/Patches/libebml-win64.patch

index 214f322503d37da71d4cea54f163b4f0d75b3f40..5dc55e04086a60686d0c489d1ef75988c69990dd 100644 (file)
@@ -1,12 +1,12 @@
 diff -ruN libebml/ebml/EbmlCrc32.h libebml.new/ebml/EbmlCrc32.h
---- libebml/ebml/EbmlCrc32.h   2005-05-06 13:43:38.000000000 +0200
-+++ libebml.new/ebml/EbmlCrc32.h       2009-08-18 11:58:45.000000000 +0200
+--- libebml/ebml/EbmlCrc32.h   2009-08-19 00:48:35.000000000 +0200
++++ libebml.new/ebml/EbmlCrc32.h       2009-08-19 00:49:35.000000000 +0200
 @@ -143,7 +143,7 @@
-
  inline bool IsAlignedOn(const void *p, unsigned int alignment)
  {
--      return IsPowerOf2(alignment) ? ModPowerOf2((unsigned long)p, alignment) == 0 : (unsigned long)p % alignment == 0;
-+      return IsPowerOf2(alignment) ? ModPowerOf2((uintptr_t)p, alignment) == 0 : (uintptr_t)p % alignment == 0;
+-      return IsPowerOf2(alignment) ? ModPowerOf2((unsigned long)p, alignment) == 0 : (unsigned long)p % alignment == 0;
++      return IsPowerOf2(alignment) ? ModPowerOf2((uintptr_t)p, alignment) == 0 : (uintptr_t)p % alignment == 0;
  }
-
  template <class T>