strings: fix using array_push_many inside write_string + gc, not using array_push_many_noscan (part 1)

This commit is contained in:
Delyan Angelov 2023-12-01 18:26:27 +02:00
parent eec9c7f242
commit be51143ac5
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 6 additions and 2 deletions

View file

@ -134,7 +134,11 @@ pub fn (mut b Builder) write_string(s string) {
if s.len == 0 {
return
}
unsafe { b.push_many(s.str, s.len) }
$if gcboehm ? {
unsafe { b.push_many_noscan(s.str, s.len) }
} $else {
unsafe { b.push_many(s.str, s.len) }
}
// for c in s {
// b.buf << c
// }