pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/sr/patches Not all world is a VAX.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fe8d254c068f
branches: trunk
changeset: 490034:fe8d254c068f
user: is <is%pkgsrc.org@localhost>
date: Wed Mar 02 14:07:39 2005 +0000
description:
Not all world is a VAX.
diffstat:
lang/sr/patches/patch-ba | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r 6514efc6e7dc -r fe8d254c068f lang/sr/patches/patch-ba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/sr/patches/patch-ba Wed Mar 02 14:07:39 2005 +0000
@@ -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*/
Home |
Main Index |
Thread Index |
Old Index