X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FStringBuffer.lhs;h=2b3b775791e0cdcdde57b363e08ffe86305c0a60;hb=4fa44a3ae9c36222ccb460ba3ed24e46bf7c70ae;hp=3b2a3df2c875dc66669fd51b4046bd018fc68e1d;hpb=0d792bea36420e657fb293d9f90f35d8ef96cb4f;p=ghc-hetmet.git diff --git a/compiler/utils/StringBuffer.lhs b/compiler/utils/StringBuffer.lhs index 3b2a3df..2b3b775 100644 --- a/compiler/utils/StringBuffer.lhs +++ b/compiler/utils/StringBuffer.lhs @@ -79,7 +79,7 @@ data StringBuffer instance Show StringBuffer where showsPrec _ s = showString "" + . showString ")>" -- ----------------------------------------------------------------------------- -- Creation / Destruction @@ -224,7 +224,7 @@ parseUnsignedInteger (StringBuffer buf _ cur) len radix char_to_int --LOL, in implementations where the indexing needs slow unsafePerformIO, --this is less (not more) efficient than using the IO monad explicitly --here. - ptr' = pUnbox ptr + !ptr' = pUnbox ptr byteOff i = cBox (indexWord8OffFastPtrAsFastChar ptr' (iUnbox (cur + i))) go i x | i == len = x | otherwise = case byteOff i of