Skip to content

Commit

Permalink
Allow deserializing code version 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dolio committed Feb 26, 2025
1 parent 612e1b0 commit 05c8c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unison-runtime/src/Unison/Runtime/ANF/Serialize.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ deserializeCode bs = runGetS (getVersion >>= getCode) bs
where
getVersion =
getWord32be >>= \case
n | 1 <= n && n <= 3 -> pure n
n | 1 <= n && n <= 4 -> pure n
n -> fail $ "deserializeGroup: unknown version: " ++ show n

serializeCode :: Map ForeignFunc Text -> Code -> ByteString
Expand Down

0 comments on commit 05c8c32

Please sign in to comment.