Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5697

Go generated code for enum uses int64, should be int32

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • Go - Compiler

    Description

      The binary protocol specification says an enum is encoded as an int32.

       

      However the compiler generates an int64 type.

      This wastes memory and is also misleading.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              garymm Gary Mindlin Miguel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m