1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix -cstrict compilation on tests-sanitize-undefined-clang

This commit is contained in:
Delyan Angelov 2021-06-23 20:17:58 +03:00
parent 93bb87f44f
commit f580597ffc
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -1496,7 +1496,7 @@ pub fn (s &string) free() {
return
}
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) }
$if freestanding {
bare_eprint(double_free_msg, u64(double_free_msg_len))