From 5efd8c62d06105fbdc72a1c80a53c5c616f7c24e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 23 May 2021 15:13:53 +0300 Subject: [PATCH] ci: fix tests-sanitize-undefined-clang --- vlib/builtin/string.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/string.v b/vlib/builtin/string.v index 99e9f92351..da89143852 100644 --- a/vlib/builtin/string.v +++ b/vlib/builtin/string.v @@ -1527,11 +1527,10 @@ pub fn (s &string) free() { return } if s.is_lit == -98761234 { - dsfree_msg := c'double string.free() detected\n' $if freestanding { - bare_eprint(dsfree_msg, u64(unsafe { C.strlen(dsfree_msg) })) + bare_eprint(c'double string.free() detected\n', 30) } $else { - C.printf(dsfree_msg) + C.printf(c'double string.free() detected\n') } return }