From e9686590752fe69f3d99d56c70703627b67df510 Mon Sep 17 00:00:00 2001 From: Topi Kettunen Date: Wed, 2 Aug 2023 15:15:06 +0200 Subject: [PATCH] Formatting --- internal/Data/Attoparsec/ByteString/Buffer.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/Data/Attoparsec/ByteString/Buffer.hs b/internal/Data/Attoparsec/ByteString/Buffer.hs index d4eae78..7a72fdd 100644 --- a/internal/Data/Attoparsec/ByteString/Buffer.hs +++ b/internal/Data/Attoparsec/ByteString/Buffer.hs @@ -120,8 +120,8 @@ append (Buf fp0 off0 len0 cap0 gen0) !fp1 !off1 !len1 = let newgen = gen + 1 poke (castPtr ptr0) newgen copyBytes (ptr0 `plusPtr` (off0+len0)) - (ptr1 `plusPtr` off1) - (fromIntegral len1) + (ptr1 `plusPtr` off1) + (fromIntegral len1) return (Buf fp0 off0 newlen cap0 newgen) else do let newcap = newlen * 2 @@ -132,7 +132,7 @@ append (Buf fp0 off0 len0 cap0 gen0) !fp1 !off1 !len1 = poke (castPtr ptr_) newgen copyBytes ptr (ptr0 `plusPtr` off0) (fromIntegral len0) copyBytes (ptr `plusPtr` len0) (ptr1 `plusPtr` off1) - (fromIntegral len1) + (fromIntegral len1) return (Buf fp genSize newlen newcap newgen) length :: Buffer -> Int