[commit: ghc] master: Fix bug in stg_ctoi_R1n (could cause GHCi crashes) (26e576c)

Simon Marlow <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/26e576c01a10053fe43920c3fa8dedf62707350a

>---------------------------------------------------------------

commit 26e576c01a10053fe43920c3fa8dedf62707350a
Author: Simon Marlow <[email protected]>
Date:   Wed Oct 31 13:50:15 2012 +0000

    Fix bug in stg_ctoi_R1n (could cause GHCi crashes)

>---------------------------------------------------------------

 rts/StgMiscClosures.cmm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rts/StgMiscClosures.cmm b/rts/StgMiscClosures.cmm
index 2985982..e6a30e6 100644
--- a/rts/StgMiscClosures.cmm
+++ b/rts/StgMiscClosures.cmm
@@ -127,7 +127,7 @@ INFO_TABLE_RET( stg_ctoi_R1n, RET_BCO )
 {
     Sp_adj(-2);
     Sp(1) = R1;
-    Sp(0) = stg_ret_p_info;
+    Sp(0) = stg_ret_n_info;
     jump stg_yield_to_interpreter [];
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.