summaryrefslogtreecommitdiff
path: root/lang/sr
diff options
context:
space:
mode:
Diffstat (limited to 'lang/sr')
-rw-r--r--lang/sr/patches/patch-ba32
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/sr/patches/patch-ba b/lang/sr/patches/patch-ba
new file mode 100644
index 00000000000..7ed7070cdab
--- /dev/null
+++ b/lang/sr/patches/patch-ba
@@ -0,0 +1,32 @@
+$NetBSD: patch-ba,v 1.1 2005/03/02 14:07:39 is Exp $
+
+--- rts/misc.c.orig 2005-03-02 13:56:52.000000000 +0000
++++ rts/misc.c
+@@ -1,6 +1,7 @@
+ /* misc.c -- miscellaneous routines supporting the generated code */
+
+ #include <stdarg.h>
++#include <stdint.h>
+ #include "rts.h"
+
+
+@@ -24,7 +25,7 @@ sr_cat (String *slist, ...)
+ n = 0; /* total the string lengths */
+ va_start (ap, slist);
+ for (s = slist; s != NULL; s = va_arg (ap, String *))
+- if ((int) s & 1)
++ if ((intptr_t) s & 1)
+ n++; /* char argument */
+ else
+ n += s->length; /* String argument */
+@@ -37,8 +38,8 @@ sr_cat (String *slist, ...)
+ p = DATA (t);
+ va_start (ap, slist);
+ for (s = slist; s != NULL; s = va_arg (ap, String *))
+- if ((int) s & 1) { /* for each input string: */
+- *p++ = (int) s >> 2; /* copy in char argument */
++ if ((intptr_t) s & 1) { /* for each input string: */
++ *p++ = (intptr_t) s >> 2; /* copy in char argument */
+ } else {
+ memcpy (p, DATA (s), s->length); /* copy into new string */
+ p += s->length; /* advance pointer*/