From 784d2736e256d8cddaf09552cc9718694f1e61d5 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Tue, 28 Jul 2026 18:23:05 +0100 Subject: [PATCH] Make casting consistent --- src/vase/line_iter.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vase/line_iter.cc b/src/vase/line_iter.cc index 3830c55..3590f76 100644 --- a/src/vase/line_iter.cc +++ b/src/vase/line_iter.cc @@ -13,7 +13,7 @@ LineIterator::~LineIterator() { void LineIterator::descend(Shard *s) { while (s->kind == Shard::ShardKind::Branch) { - auto *b = static_cast(s); + auto *b = (Branch *)s; stack.push_back(b); s = b->left; } @@ -42,7 +42,7 @@ void LineIterator::seek_line(uint32_t line_index) { uint32_t nth = line_index; Shard *s = root; while (s->kind == Shard::ShardKind::Branch) { - auto *b = static_cast(s); + auto *b = (Branch *)s; if (nth <= b->left->lines) { stack.push_back(b); s = b->left; @@ -51,7 +51,7 @@ void LineIterator::seek_line(uint32_t line_index) { s = b->right; } } - petal = static_cast(s); + petal = (Petal *)s; uint32_t nl_pos = petal->source->nth_newline(petal->pos, nth); petal_offset = (nl_pos - petal->pos) + 1; if (petal_offset >= petal->length)