From: simonmar Date: Wed, 11 Jan 2006 13:12:09 +0000 (+0000) Subject: [project @ 2006-01-11 13:12:09 by simonmar] X-Git-Tag: final_switch_to_darcs,_this_repo_is_now_live~35 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a34aa5f9ebde7ce0097ea8162efdb5fd0cae0ef1;p=ghc-hetmet.git [project @ 2006-01-11 13:12:09 by simonmar] 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) --- diff --git a/ghc/compiler/deSugar/DsUtils.lhs b/ghc/compiler/deSugar/DsUtils.lhs index 1465554..ba1a638 100644 --- 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}