Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sig.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,19 @@ func (cnt *depthCounter) Valid() bool {
return cnt.arrayDepth <= 32 && cnt.structDepth <= 32 && cnt.dictEntryDepth <= 32
}

func (cnt depthCounter) EnterArray() *depthCounter {
func (cnt *depthCounter) EnterArray() *depthCounter {
cnt.arrayDepth++
return &cnt
return cnt
}

func (cnt depthCounter) EnterStruct() *depthCounter {
func (cnt *depthCounter) EnterStruct() *depthCounter {
cnt.structDepth++
return &cnt
return cnt
}

func (cnt depthCounter) EnterDictEntry() *depthCounter {
func (cnt *depthCounter) EnterDictEntry() *depthCounter {
cnt.dictEntryDepth++
return &cnt
return cnt
}

// Try to read a single type from this string. If it was successful, err is nil
Expand Down