Qpid
  1. Qpid
  2. QPID-3718

The Ruby bindings failed to properly handle uint8_t types.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.15
    • Component/s: Ruby Client
    • Labels:
      None

      Description

      Adds an entry to the SWIG Ruby definition that properly maps between uint8_t and Fixnum.

        Activity

        Hide
        Ted Ross added a comment -

        The typemaps in swig_ruby_typemaps.i didn't include uint8_t or int8_t. Your patch simply tells swig to treat uint8_t the same as "unsigned char" which is arguably cleaner than adding an explicit set of typemaps for uint8_t. Perhaps we should do the same for all the

        {u}

        int

        {8,16,32,64}

        _t types.

        Show
        Ted Ross added a comment - The typemaps in swig_ruby_typemaps.i didn't include uint8_t or int8_t. Your patch simply tells swig to treat uint8_t the same as "unsigned char" which is arguably cleaner than adding an explicit set of typemaps for uint8_t. Perhaps we should do the same for all the {u} int {8,16,32,64} _t types.
        Hide
        Darryl L. Pierce added a comment -

        This patch handles uint8_t and int8_t mappings for Ruby.

        Show
        Darryl L. Pierce added a comment - This patch handles uint8_t and int8_t mappings for Ruby.

          People

          • Assignee:
            Ted Ross
            Reporter:
            Darryl L. Pierce
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development