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

C# generates unsigned byte for Thrift "byte" type

    XMLWordPrintableJSON

    Details

    • Patch Info:
      Patch Available

      Description

      Given the code

      struct test {
        1: byte field
      }
      

      the C# Generator generates

      public partial class test : TBase
      {
        private byte _field;
        // more code
      }
      

      which is wrong, as all Thrift integer types are considered signed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                jensg Jens Geyer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: