aboutsummaryrefslogtreecommitdiff
path: root/textproc/zorba/files/patch-swig_ZorbaIOStream.i
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/zorba/files/patch-swig_ZorbaIOStream.i')
-rw-r--r--textproc/zorba/files/patch-swig_ZorbaIOStream.i18
1 files changed, 18 insertions, 0 deletions
diff --git a/textproc/zorba/files/patch-swig_ZorbaIOStream.i b/textproc/zorba/files/patch-swig_ZorbaIOStream.i
new file mode 100644
index 000000000000..c69109ad329a
--- /dev/null
+++ b/textproc/zorba/files/patch-swig_ZorbaIOStream.i
@@ -0,0 +1,18 @@
+--- swig/ZorbaIOStream.i.orig 2012-10-03 22:35:16 UTC
++++ swig/ZorbaIOStream.i
+@@ -46,7 +46,7 @@ void ZorbaIOStream::setStream(const char
+
+ void ZorbaIOStream::setStream(const char *BYTE, size_t aLen)
+ {
+- if (aLen<0) aLen=0;
++ /* if (aLen<0) aLen=0; size_t is unsigned, check always fails */
+ if (aLen > 0)
+ memcpy(buffer, BYTE, aLen*sizeof(char));
+ len = aLen;
+@@ -71,4 +71,4 @@ void ZorbaIOStream::write(const char *BY
+ %} // end Implementation
+
+
+-%include "ZorbaIOStream.h"
+\ No newline at end of file
++%include "ZorbaIOStream.h"