Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3578 from input-output-hk/intricate+mhuesch/CO-35…
Browse files Browse the repository at this point in the history
…4/nm-word32-to-int32

[CO-354] Make use of an Int32 instead of a Word32 in NetworkMagic
  • Loading branch information
rvl authored Sep 12, 2018
2 parents 89e651a + 0b4188e commit f8ea576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/Pos/Core/NetworkMagic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Pos.Util.Util (cerealError)
-- conversion bugs.
data NetworkMagic
= NMNothing
| NMJust !Word32
| NMJust !Int32
deriving (Show, Eq, Ord, Generic)

instance NFData NetworkMagic
Expand All @@ -44,4 +44,4 @@ instance SafeCopy NetworkMagic where
makeNetworkMagic :: ProtocolMagic -> NetworkMagic
makeNetworkMagic pm = case getRequiresNetworkMagic pm of
NMMustBeNothing -> NMNothing
NMMustBeJust -> NMJust (fromIntegral (getProtocolMagic pm))
NMMustBeJust -> NMJust (getProtocolMagic pm)

0 comments on commit f8ea576

Please sign in to comment.