Skip to content

Commit

Permalink
actually pass the allocator down
Browse files Browse the repository at this point in the history
  • Loading branch information
lichendust committed Dec 5, 2024
1 parent 702c5ce commit d648772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spindle.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit d648772

Please sign in to comment.