[ https://issues.apache.org/jira/browse/THRIFT-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709741#comment-17709741 ]
Gary Mindlin Miguel commented on THRIFT-5697: --------------------------------------------- https://github.com/apache/thrift/pull/2776 > Go generated code for enum uses int64, should be int32 > ------------------------------------------------------ > > Key: THRIFT-5697 > URL: https://issues.apache.org/jira/browse/THRIFT-5697 > Project: Thrift > Issue Type: Improvement > Components: Go - Compiler > Reporter: Gary Mindlin Miguel > Priority: Minor > > [The binary protocol specification says an enum is encoded as an > int32|https://github.com/apache/thrift/blob/cb60265ec192a5c152d0ce6d4e4ce65633945073/doc/specs/thrift-binary-protocol.md?plain=1#L58]. > > However the compiler generates an [int64 > type|https://github.com/apache/thrift/blob/cb60265ec192a5c152d0ce6d4e4ce65633945073/compiler/cpp/src/thrift/generate/t_go_generator.cc#L786]. > This wastes memory and is also misleading. -- This message was sent by Atlassian Jira (v8.20.10#820010)