Skip to content

Commit dd95cad

Browse files
committed
Fix more dumb issues with tree ranges
1 parent 3f1b64e commit dd95cad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/ttree.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ struct TTree(T, Allocator = Mallocator, bool allowDuplicates = false,
264264

265265
alias CET = ContainerElementType!(This, T);
266266
enforce(!empty(), "Attepted to get the front of an empty tree.");
267-
inout(Node)* current = root;
267+
Node* current = cast(Node*) root;
268268
while (current.left !is null)
269269
current = current.left;
270270
return cast(CET) current.values[0];
@@ -279,7 +279,7 @@ struct TTree(T, Allocator = Mallocator, bool allowDuplicates = false,
279279

280280
alias CET = ContainerElementType!(This, T);
281281
enforce(!empty(), "Attepted to get the back of an empty tree.");
282-
inout(Node)* current = root;
282+
Node* current = cast(Node*) root;
283283
while (current.right !is null)
284284
current = current.right;
285285
return cast(CET) current.values[current.nextAvailableIndex - 1];

0 commit comments

Comments
 (0)