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

RtlBitfieldTypeInfo::signedValue is wrong

    XMLWordPrintable

    Details

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

      Description

      Spotted while doing some other work, there are at least two problems:

      • sizeof(value) should be sizeof(value) * 8
      • value >> numBits should be value >> (sizeof(value) * 8-numBits);

      I doubt it has ever been exercised though since bitfields are not very common.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: