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

assignment mismatch #5

Open
petite-abeille opened this issue Apr 28, 2021 · 1 comment
Open

assignment mismatch #5

petite-abeille opened this issue Apr 28, 2021 · 1 comment

Comments

@petite-abeille
Copy link

# go version
go version go1.16.3 darwin/amd64

Getting a compilation error in noisenet/conn.go:

# make darwin
../noisenet/conn.go:97:14: assignment mismatch: 1 variable but c.out.Encrypt returns 2 values

Which refers to this line:

ciphertext := c.out.Encrypt(nil, nil, data[:m])

Adding an extra value alleviates the problem:

ciphertext, _ := c.out.Encrypt(nil, nil, data[:m])
@haarts
Copy link

haarts commented Dec 1, 2021

I can confirm this is an issue with Go version 1.17 too.

❯ go version
go version go1.17.3 linux/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants