Merge pull request #375 from Zilarrezko/master

make_builder function now properly uses given allocator
This commit is contained in:
gingerBill
2019-05-19 09:55:03 +01:00
committed by GitHub

View File

@@ -9,7 +9,7 @@ Builder :: struct {
}
make_builder :: proc(allocator := context.allocator) -> Builder {
return Builder{make([dynamic]byte)};
return Builder{make([dynamic]byte, allocator)};
}
destroy_builder :: proc(b: ^Builder) {