Uploaded image for project: 'Leatherman (moved to puppet.atlassian.net)'
  1. Leatherman (moved to puppet.atlassian.net)
  2. LTH-91

Add long long accessors for Ruby numbers

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • LTH 0.5.0
    • None
    • 1
    • Client 2016-04-20

    Description

      Ruby 2.2 changes rb_num2long to return a long. That's a dangerous operation to use in a cross-platform 64-bit application, because on Windows it'll be a 32-bit int and on most other platforms a 64-bit int.

      Change to force use of rb_num2ll and rb_num2ull instead to avoid issues with long return values (and the inconsistency between Ruby 2.1 and 2.2).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michael.smith Michael Smith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support