From f1be2972ec9ed995bb50993c7d0ecbb81cbc1d78 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 5 Mar 2023 22:50:58 +0100 Subject: [PATCH] Use DString --- day17.c3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day17.c3 b/day17.c3 index b84187c..94a0f53 100644 --- a/day17.c3 +++ b/day17.c3 @@ -32,7 +32,7 @@ macro bool StateCache.equals(StateCache* cache, StateCache other) return true; } -fn VarString load_jets() +fn DString load_jets() { File f; f.open("jets.txt", "rb")!!; @@ -272,7 +272,7 @@ fn void solve(String winds, long rocks) fn void main() { - VarString s = load_jets(); + DString s = load_jets(); defer s.destroy(); solve(s.str(), 2022); solve(s.str(), 1000000000000i64);