File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ fn (mut a array) push_noscan(val voidptr) {
255
255
// push_many implements the functionality for pushing another array.
256
256
// `val` is array.data and user facing usage is `a << [1,2,3]`
257
257
@[unsafe ]
258
- fn (mut a3 array) push_many_noscan (val voidptr , size int ) {
258
+ pub fn (mut a3 array) push_many_noscan (val voidptr , size int ) {
259
259
if size < = 0 || val == unsafe { nil } {
260
260
return
261
261
}
Original file line number Diff line number Diff line change @@ -134,7 +134,11 @@ pub fn (mut b Builder) write_string(s string) {
134
134
if s.len == 0 {
135
135
return
136
136
}
137
- unsafe { b.push_many (s.str, s.len) }
137
+ $if gcboehm ? {
138
+ unsafe { b.push_many_noscan (s.str, s.len) }
139
+ } $else {
140
+ unsafe { b.push_many (s.str, s.len) }
141
+ }
138
142
// for c in s {
139
143
// b.buf << c
140
144
// }
You can’t perform that action at this time.
0 commit comments