From ff9a2851d46033c0f2595ae899c899536c8052a0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 27 Nov 2025 01:19:41 +0000 Subject: [PATCH] Switch to using i64's instead of optional u64 in Node --- src/node.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/node.hpp b/src/node.hpp index 641d599..d221372 100644 --- a/src/node.hpp +++ b/src/node.hpp @@ -32,13 +32,11 @@ namespace cw::node struct Node { Fraction value; - index_t left, right; + i64 left, right; - Node(const Fraction &&val = {}, index_t left = -1, index_t right = -1); + Node(const Fraction &&val = {}, i64 left = -1, i64 right = -1); }; - std::string to_string(const Node &); - struct NodeAllocator { std::vector vec; @@ -49,7 +47,7 @@ namespace cw::node Node &get_ref(u64 n); }; - std::string to_string(const NodeAllocator &, const index_t, int depth = 1); + std::string to_string(const NodeAllocator &, const i64, int depth = 1); } // namespace cw::node #endif