Fix bugs
All checks were successful
Tests / Release [gcc] total: 423, passed: 423
GNU C Compiler (gcc) |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |0|0|0|0|:clap: Reference build: <a href="https://jenkins.weaselab.dev/job/weaselab/job/conflict-set/job/main/17//gcc">weaselab » conflict-set » main #17</a>
Tests / Coverage total: 421, passed: 421
weaselab/conflict-set/pipeline/head This commit looks good

This commit is contained in:
2024-02-17 22:09:00 -08:00
parent 9a72f133a9
commit cb31f4c25b
358 changed files with 7 additions and 3 deletions

View File

@@ -101,7 +101,9 @@ struct BitSet {
int firstSetGeq(int i) const {
assert(0 <= i);
assert(i < 256);
if (i >= 256) {
return -1;
}
if (i < 128) {
int a = std::countr_zero(lo >> i);
if (a < 128) {
@@ -1319,9 +1321,11 @@ void addWriteRange(Node *&root, int64_t oldestVersion,
break;
}
n = getChildExists(n, c);
n->maxVersion = std::max(n->maxVersion, w.writeVersion);
remaining = remaining.subspan(n->partialKeyLen + 1,
remaining.size() - (n->partialKeyLen + 1));
n = getChildExists(n, c);
}
Node **useAsRoot = n->parent == nullptr