Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
udpatil committed Sep 12, 2024
1 parent 7f925de commit c21fd83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@ var (
)

func addHostContext(ctx HostContext) uintptr {
id := hostContextCounter.Load()
cnt := hostContextCounter.Add(1)
hostContextCounter.Store(cnt)
id := hostContextCounter.Add(1)
hostContextMap.Store(id, ctx)
return id
}
Expand Down

0 comments on commit c21fd83

Please sign in to comment.