mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
* https://issues.apache.org/jira/browse/XERCESC-1994 * https://issues.apache.org/jira/browse/XERCESC-1995 - Bump PORTREVISION - While at it, add a 'test' target to run the provided test suite PR: 171537 [1] Submitted by: Michael Gmelin <freebsd@grem.de>
11 lines
532 B
C++
11 lines
532 B
C++
--- orig/xercesc/validators/common/ContentSpecNode.cpp.orig
|
|
+++ src/xercesc/validators/common/ContentSpecNode.cpp
|
|
@@ -259,7 +259,7 @@ int ContentSpecNode::getMaxTotalRange() const {
|
|
else {
|
|
|
|
if ((fType & 0x0f) == ContentSpecNode::Choice) {
|
|
- max = max * (maxFirst > maxSecond) ? maxFirst : maxSecond;
|
|
+ max = max * ((maxFirst > maxSecond) ? maxFirst : maxSecond);
|
|
}
|
|
else {
|
|
max = max * (maxFirst + maxSecond);
|