Fix wrong-result bug. Previously it could incorrectly report Commit

Blog post forthcoming
This commit is contained in:
andrew committed 2026-10-09 16:34:33 -04:00
1 parent 9b6dd51b85
commit 4ef10b106a
1 file changed
+1 -2
+1 -2
View File
@@ -2935,8 +2935,7 @@ void fixupMaxVersion(Node *node, WriteContext *writeContext) {
} break;
case Type_Node256: {
auto *self256 = static_cast<Node256 *>(node);
max = std::max(
max, horizontalMax16(self256->childMaxVersion, writeContext->zero));
max = std::max(max, horizontalMax16(self256->maxOfMax, writeContext->zero));
} break;
default: // GCOVR_EXCL_LINE
__builtin_unreachable(); // GCOVR_EXCL_LINE