[ 
https://issues.apache.org/jira/browse/THRIFT-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Mindlin Miguel closed THRIFT-5697.
---------------------------------------
    Resolution: Won't Fix

> 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
>              Labels: Breaking-Change
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> [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)

Reply via email to