Skip to content

Commit 293e323

Browse files
committed
Formatted
1 parent 76919c6 commit 293e323

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

highs/util/HighsHashTree.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,7 @@ class HighsHashTree {
392392
struct BranchNode {
393393
Occupation occupation;
394394

395-
NodePtr* children() {
396-
return reinterpret_cast<NodePtr*>(this + 1);
397-
}
395+
NodePtr* children() { return reinterpret_cast<NodePtr*>(this + 1); }
398396

399397
const NodePtr* children() const {
400398
return reinterpret_cast<const NodePtr*>(this + 1);
@@ -692,8 +690,7 @@ class HighsHashTree {
692690
BranchNode* compressedBranch = (BranchNode*)::operator new(newSize);
693691
newNode = compressedBranch;
694692

695-
size_t leftSize =
696-
sizeof(BranchNode) + size_t(location) * sizeof(NodePtr);
693+
size_t leftSize = sizeof(BranchNode) + size_t(location) * sizeof(NodePtr);
697694
memcpy(compressedBranch, branch, leftSize);
698695
memcpy(compressedBranch->childPtr(location),
699696
branch->childPtr(location + 1), rightSize);
@@ -1309,8 +1306,7 @@ class HighsHashTree {
13091306
BranchNode* branch = node.getBranchNode();
13101307
int size = branch->occupation.num_set();
13111308

1312-
for (int i = 0; i < size; ++i)
1313-
for_each_recurse<R>(branch->child(i), f);
1309+
for (int i = 0; i < size; ++i) for_each_recurse<R>(branch->child(i), f);
13141310
}
13151311
}
13161312
}

0 commit comments

Comments
 (0)