summaryrefslogtreecommitdiff
path: root/lang/sr/patches/patch-bj
blob: 0546ca660ed63f3dfe4dd382169b4710ca8d9b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-bj,v 1.1 2005/04/05 15:58:05 is Exp $

--- sr/gexpr.c.orig	1999-10-26 03:06:20.000000000 +0200
+++ sr/gexpr.c
@@ -942,7 +942,7 @@ Nodeptr e;
 	r = RNODE (e);
 	if (l->e_sig->g_type == T_STRING) {
 	    if (option_O)
-		cprintf ("(DATA(%e)+%e-1)", l, r);
+		cprintf ("((Char*)DATA(%e)+%e-1)", l, r);
 	    else {
 		cprintf ("(");
 		once (l, ',');