dedis / protobuf

Reflection-based Protocol Buffers for Go
GNU General Public License v2.0
76 stars 15 forks source link

Add support for []int on the decoding part #42

Closed aounleonardo closed 6 years ago

aounleonardo commented 6 years ago

Add case reflect.Int and reflect.Uint in decode.go for both slice and putvalue. Also add a check to see if the machine is 32bit, if it is, we panic, forcing the user to decode either (u)int32 or (u)int64. Add test array_test.go.

Closes #14

aounleonardo commented 6 years ago

Thanks for the feedback, I made the changes.