We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hFlipBit
1 parent 72c4461 commit ed4462cCopy full SHA for ed4462c
test/Test/Util/FS.hs
@@ -364,7 +364,7 @@ hFlipBit hfs h bitOffset = do
364
-- least the size of a machine word.
365
let n = sizeOf (0 :: Word)
366
buf <- newPinnedByteArray n
367
- setByteArray buf 0 n (0 :: Word)
+ setByteArray buf 0 1 (0 :: Word)
368
-- Read the bit at the given offset
369
let (byteOffset, i) = bitOffset `quotRem` 8
370
bufOff = BufferOffset 0
0 commit comments