summaryrefslogtreecommitdiff
path: root/lang/sr/patches/patch-bj
diff options
context:
space:
mode:
authoris <is>2005-04-05 15:58:05 +0000
committeris <is>2005-04-05 15:58:05 +0000
commit8899e064ba14c28c50652f1a0f2d41c8bda92a91 (patch)
tree260c0dee7e7aeaabd249eaf8c36a583cc78f40aa /lang/sr/patches/patch-bj
parentd4a5c58a3836b2be3a46b0b68cff149f332b78a5 (diff)
downloadpkgsrc-8899e064ba14c28c50652f1a0f2d41c8bda92a91.tar.gz
Fix SR optimizer bug: with -O, the char-integer-conversion was unsigned,
while it is signed without.
Diffstat (limited to 'lang/sr/patches/patch-bj')
-rw-r--r--lang/sr/patches/patch-bj13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/sr/patches/patch-bj b/lang/sr/patches/patch-bj
new file mode 100644
index 00000000000..0546ca660ed
--- /dev/null
+++ b/lang/sr/patches/patch-bj
@@ -0,0 +1,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, ',');