make_builder function now properly uses given allocator

This commit is contained in:
Zilarrezko
2019-05-18 18:57:34 -07:00
parent b1663a14e9
commit d2faa9bef1
+1 -1
View File
@@ -9,7 +9,7 @@ Builder :: struct {
} }
make_builder :: proc(allocator := context.allocator) -> Builder { make_builder :: proc(allocator := context.allocator) -> Builder {
return Builder{make([dynamic]byte)}; return Builder{make([dynamic]byte, allocator)};
} }
destroy_builder :: proc(b: ^Builder) { destroy_builder :: proc(b: ^Builder) {