Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18653

Code to access a real from an initialiser looks wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: eclrtl
    • Labels:
      None

      Description

      The code in RtlRecord::getReal() for processing the initialiser looks wrong:

      return type->getInt(fieldInfo->initializer);
      

      I think it should probably be

       

      return type->getReal(fieldInfo->initializer);
      

      But I'm not sure why it wasn't caught by a unit test.

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: