summarylogtreecommitdiffstats
path: root/002-pointer-cast.patch
diff options
context:
space:
mode:
authorAndrew Sun2017-11-12 17:00:00 +0000
committerAndrew Sun2017-11-12 17:00:00 +0000
commitdc93e171069fd008df51d7ce9e3ead0064b1af93 (patch)
tree16be8f8dc8facde684635546a408f7c18273b5f4 /002-pointer-cast.patch
downloadaur-dc93e171069fd008df51d7ce9e3ead0064b1af93.tar.gz
add mingw-w64-libtre-git
Diffstat (limited to '002-pointer-cast.patch')
-rw-r--r--002-pointer-cast.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/002-pointer-cast.patch b/002-pointer-cast.patch
new file mode 100644
index 000000000000..4df924ce8b34
--- /dev/null
+++ b/002-pointer-cast.patch
@@ -0,0 +1,13 @@
+--- libtre/lib/tre-internal.h.orig 2015-01-13 23:45:59.325000000 +0300
++++ libtre/lib/tre-internal.h 2015-01-14 00:12:06.954200000 +0300
+@@ -127,8 +127,8 @@
+ /* Returns number of bytes to add to (char *)ptr to make it
+ properly aligned for the type. */
+ #define ALIGN(ptr, type) \
+- ((((long)ptr) % sizeof(type)) \
+- ? (sizeof(type) - (((long)ptr) % sizeof(type))) \
++ ((((intptr_t)ptr) % sizeof(type)) \
++ ? (sizeof(type) - (((intptr_t)ptr) % sizeof(type))) \
+ : 0)
+
+ #undef MAX