From f580597ffcdb1bf9ecc259badaa985b6f31023d0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 23 Jun 2021 20:17:58 +0300 Subject: [PATCH] ci: fix -cstrict compilation on tests-sanitize-undefined-clang --- vlib/builtin/string.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/string.v b/vlib/builtin/string.v index b13a4c13b5..b7be5d32ce 100644 --- a/vlib/builtin/string.v +++ b/vlib/builtin/string.v @@ -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))