Skip to content
Snippets Groups Projects
Commit 0df01dd6 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Decode: Disambiguated defaulted integer type

parent 682229a2
No related branches found
No related tags found
1 merge request!19Update stub to account for separate src_span and src_file in IPE entries
......@@ -225,9 +225,13 @@ decodeArrWords :: (StgInfoTableWithPtr, b)
decodeArrWords (infot, _) (_, rc) = decodeFromBS rc $ do
_itbl <- skipClosureHeader
bytes <- getWord64le
payload <- replicateM (ceiling (fromIntegral bytes / 8)) getWord
payload <- replicateM (fromIntegral $ bytes `ceilIntDiv` 8) getWord
return $ GHC.Debug.Types.Closures.ArrWordsClosure infot (fromIntegral bytes) (map fromIntegral payload)
-- | Compute @ceiling (a/b)@.
ceilIntDiv :: Integral a => a -> a -> a
ceilIntDiv a b = (a + b - 1) `div` b
tsoVersionChanged :: Version
tsoVersionChanged = Version 905 20220925
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment