Commit 94b82f94 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix Win64 patch for ebml

parent f27c7f31
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>
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