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:
3338039
)
[project @ 2006-01-11 13:12:09 by simonmar]
author
simonmar
<unknown>
Wed, 11 Jan 2006 13:12:09 +0000
(13:12 +0000)
committer
simonmar
<unknown>
Wed, 11 Jan 2006 13:12:09 +0000
(13:12 +0000)
fix string desugaring: we can only use the ASCII unpackCString# if all
the chars are <= 0x7F, not <= 0xFF.
(fixes recent breakage in nofib/real/compress2)
ghc/compiler/deSugar/DsUtils.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/deSugar/DsUtils.lhs
b/ghc/compiler/deSugar/DsUtils.lhs
index
1465554
..
ba1a638
100644
(file)
--- a/
ghc/compiler/deSugar/DsUtils.lhs
+++ b/
ghc/compiler/deSugar/DsUtils.lhs
@@
-489,7
+489,7
@@
mkStringExprFS str
where
chars = unpackFS str
- safeChar c = ord c >= 1 && ord c <= 0xFF
+ safeChar c = ord c >= 1 && ord c <= 0x7F
\end{code}