diff options
Diffstat (limited to 'src/Network/Address.hs')
-rw-r--r-- | src/Network/Address.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Address.hs b/src/Network/Address.hs index e4ec09b4..0fbd191a 100644 --- a/src/Network/Address.hs +++ b/src/Network/Address.hs | |||
@@ -566,7 +566,7 @@ testIdBit (NodeId bs) i | |||
566 | -} | 566 | -} |
567 | 567 | ||
568 | testIdBit :: FiniteBits bs => bs -> Word -> Bool | 568 | testIdBit :: FiniteBits bs => bs -> Word -> Bool |
569 | testIdBit bs i = testBit bs (fromIntegral (finiteBitSize bs - fromIntegral i)) | 569 | testIdBit bs i = testBit bs (fromIntegral (finiteBitSize bs - 1 - fromIntegral i)) |
570 | {-# INLINE testIdBit #-} | 570 | {-# INLINE testIdBit #-} |
571 | 571 | ||
572 | ------------------------------------------------------------------------ | 572 | ------------------------------------------------------------------------ |