From d64877212704d249db49e889a608921820306d4d Mon Sep 17 00:00:00 2001 From: Harley Denham <45082543+qxoko@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:48:53 +0000 Subject: [PATCH] actually pass the allocator down --- spindle.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spindle.odin b/spindle.odin index 7618592..17e1397 100644 --- a/spindle.odin +++ b/spindle.odin @@ -616,7 +616,7 @@ format_thousand_separators :: proc(t: string, sep: rune = ',', allocator := cont final_size := count + (count / 3) + remainder - 1 builder: strings.Builder - strings.builder_init(&builder, 0, final_size) + strings.builder_init(&builder, 0, final_size, allocator) if remainder > 0 { strings.write_string(&builder, t[:remainder])