1 $NetBSD: patch-ba,v 1.1 2005/03/02 14:07:39 is Exp $
3 --- rts/misc.c.orig 2005-03-02 13:56:52.000000000 +0000
6 /* misc.c -- miscellaneous routines supporting the generated code */
13 @@ -24,7 +25,7 @@ mpd_cat (String *slist, ...)
14 n = 0; /* total the string lengths */
16 for (s = slist; s != NULL; s = va_arg (ap, String *))
18 + if ((intptr_t) s & 1)
19 n++; /* char argument */
21 n += s->length; /* String argument */
22 @@ -37,8 +38,8 @@ mpd_cat (String *slist, ...)
25 for (s = slist; s != NULL; s = va_arg (ap, String *))
26 - if ((int) s & 1) { /* for each input string: */
27 - *p++ = (int) s >> 2; /* copy in char argument */
28 + if ((intptr_t) s & 1) { /* for each input string: */
29 + *p++ = (intptr_t) s >> 2; /* copy in char argument */
31 memcpy (p, DATA (s), s->length); /* copy into new string */
32 p += s->length; /* advance pointer*/