Skip to content

Commit

Permalink
[ change ] Make Counters.getOffset of intermediate UInts uniform unde…
Browse files Browse the repository at this point in the history
…r the linker flag
  • Loading branch information
banacorn committed Dec 22, 2023
1 parent 5624110 commit f176b5b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Keelung/Syntax/Counters.hs
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,10 @@ instance ReadCounters (Category, ReadType) where
ReadBool -> fX (countIntermediate counters)
ReadAllUInts ->
fX (countIntermediate counters)
+ ( if countUseNewLinker counters
then 0
else bX (countIntermediate counters)
)
+ bX (countIntermediate counters)
ReadUInt w ->
fX (countIntermediate counters)
+ ( if countUseNewLinker counters
then 0
else bX (countIntermediate counters)
)
+ bX (countIntermediate counters)
+ sum
( IntMap.mapWithKey
( \width count ->
Expand Down

0 comments on commit f176b5b

Please sign in to comment.