Skip to content

Commit

Permalink
feat: PUSHSize() can accept 2 different ~string types
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR4N committed Aug 2, 2024
1 parent 277dba2 commit 9e79243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var _ = asPushTags[tag]

// PUSHSize pushes abs(loc(a),loc(b)), i.e. the size of the bytecode between the
// corresponding JUMPDEST(s) / Label(s).
func PUSHSize[T ~string](a, b T) types.Bytecoder {
func PUSHSize[T ~string, U ~string](a T, b U) types.Bytecoder {
return pushSize{tag(a), tag(b)}
}

Expand Down

0 comments on commit 9e79243

Please sign in to comment.