Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1385

Facter output of negative FixNum values from Ruby facts is incorrect with Ruby 2.2

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • FACT 3.1.6
    • None
    • None
    • 1
    • Client 2016-04-20, Client 2016-05-04

    Description

      Ruby 2.2 appears to have changed the signature of rb_num2long to actually return a long. That results in unit tests failing with Ruby 2.2 on Windows, because there a long is a 32-bit type but we assume rb_num2long returns a 64-bit type. Instead of getting -1, you get INT_MAX+1 (or something close to that).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support