Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "unsupported type; ..." with map[string]*struct #43

Merged
merged 2 commits into from
Jan 31, 2021

Conversation

darigaaz
Copy link
Contributor

fixed #42

@@ -295,19 +295,10 @@ func (dec *Decoder) traverse() error {
dec.traverseInMap(true)
}
dec.field = ""

dec.traverseIndirect()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it must be nested in both cases dec.field != "" and dec.index != ""
otherwise calls to dec.traverse() with empty field and index changes decoder state if dec.curr points to some reflect.Pointer

@darigaaz darigaaz mentioned this pull request Jan 30, 2021
@arp242 arp242 force-pushed the allow_pointers_in_maps branch from 0f7412b to f8532c1 Compare January 31, 2021 08:11
@arp242 arp242 merged commit 41b48e2 into monoculum:master Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants