projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95b51e
)
[project @ 1997-09-03 23:51:06 by sof]
author
sof
<unknown>
Wed, 3 Sep 1997 23:51:06 +0000
(23:51 +0000)
committer
sof
<unknown>
Wed, 3 Sep 1997 23:51:06 +0000
(23:51 +0000)
unpackCStringBA# arguments swapped
ghc/compiler/utils/FastString.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/FastString.lhs
b/ghc/compiler/utils/FastString.lhs
index
0cbb3f8
..
92afb68
100644
(file)
--- a/
ghc/compiler/utils/FastString.lhs
+++ b/
ghc/compiler/utils/FastString.lhs
@@
-137,7
+137,7
@@
unpackFS :: FastString -> String
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 205
unpackFS (FastString _ l# ba#) = byteArrayToString (_ByteArray (0,I# l#) ba#)
#else
-unpackFS (FastString _ l# ba#) = unpackCStringBA# l# ba#
+unpackFS (FastString _ l# ba#) = unpackCStringBA# ba# l#
#endif
unpackFS (CharStr addr len#) =
unpack 0#