[project @ 2006-01-11 13:12:09 by simonmar]
authorsimonmar <unknown>
Wed, 11 Jan 2006 13:12:09 +0000 (13:12 +0000)
committersimonmar <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

index 1465554..ba1a638 100644 (file)
@@ -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}