Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2026

typo in validators ContentSpecNode::getMaxTotalRange()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7 64

      Description

      .\src\xercesc\validators\common\ContentSpecNode.cpp 262

      I think here the error.
      max = max * (maxFirst > maxSecond) ? maxFirst : maxSecond;

      '?' operator has lower priority than '*'

      Must be:
      max = max * (maxFirst > maxSecond ? maxFirst : maxSecond);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maksqwe Maks Naumov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: