ci: fix -cstrict compilation on tests-sanitize-undefined-clang
parent
93bb87f44f
commit
f580597ffc
|
@ -1496,7 +1496,7 @@ pub fn (s &string) free() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if s.is_lit == -98761234 {
|
if s.is_lit == -98761234 {
|
||||||
double_free_msg := c'double string.free() detected\n'
|
double_free_msg := unsafe { &byte(c'double string.free() detected\n') }
|
||||||
double_free_msg_len := unsafe { vstrlen(double_free_msg) }
|
double_free_msg_len := unsafe { vstrlen(double_free_msg) }
|
||||||
$if freestanding {
|
$if freestanding {
|
||||||
bare_eprint(double_free_msg, u64(double_free_msg_len))
|
bare_eprint(double_free_msg, u64(double_free_msg_len))
|
||||||
|
|
Loading…
Reference in New Issue