[
https://issues.apache.org/jira/browse/XERCESC-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maks Naumov updated XERCESC-2026:
---------------------------------
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);
was:
.\src\xercesc\validators\common\ContentSpecNode.cpp 262
I think here the error.
max = max * (maxFirst > maxSecond) ? maxFirst : maxSecond;
'?' operator has lower priority than '*'
> typo in validators ContentSpecNode::getMaxTotalRange()
> ------------------------------------------------------
>
> Key: XERCESC-2026
> URL: https://issues.apache.org/jira/browse/XERCESC-2026
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: 3.2.0
> Environment: Windows 7 64
> Reporter: Maks Naumov
> Priority: Minor
>
> .\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);
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]