aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/rtfx/files/patch-src-xmlfixups.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/rtfx/files/patch-src-xmlfixups.cpp')
-rw-r--r--textproc/rtfx/files/patch-src-xmlfixups.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/rtfx/files/patch-src-xmlfixups.cpp b/textproc/rtfx/files/patch-src-xmlfixups.cpp
new file mode 100644
index 000000000000..b2f39c74af1f
--- /dev/null
+++ b/textproc/rtfx/files/patch-src-xmlfixups.cpp
@@ -0,0 +1,11 @@
+--- src/xmlfixups.cpp~
++++ src/xmlfixups.cpp
+@@ -453,7 +453,7 @@ void XmlFixups::runPassTwo(const DOM::Do
+
+ // Mark each node as we've seen it so we don't
+ // do a given element twice
+- if((int)el.getUserData() == PASS_TWO)
++ if((intptr_t)el.getUserData() == (intptr_t)PASS_TWO)
+ continue;
+
+ el.setUserData((void*)PASS_TWO);