Skip to content

Commit

Permalink
resman_stats: fix side effect snafu for 0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
niv committed Nov 22, 2017
1 parent 6548751 commit 6d24027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nwn_resman_stats.nim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ proc newStatsForContainer(): StatsForContainer =
result.resShadowedSizes = newTable[ResType, int64]()
result.resShadowedByContIdx = newCountTable[int]()

proc `+`(a, b: StatsForContainer): StatsForContainer =
proc `+`(a, b: StatsForContainer): StatsForContainer {.noSideEffect.} =
result = newStatsForContainer()

if a.resTypes != nil: result.resTypes.merge(a.resTypes)
Expand Down

0 comments on commit 6d24027

Please sign in to comment.