From 1899845582eff53614215b9495d5fe48dc8e144a Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 5 Apr 2021 22:18:18 +0300 Subject: [PATCH] ci: fix build-vc job --- vlib/builtin/builtin.c.v | 4 ++-- vlib/builtin/map.v | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vlib/builtin/builtin.c.v b/vlib/builtin/builtin.c.v index 5885145cd8..acb43cbc12 100644 --- a/vlib/builtin/builtin.c.v +++ b/vlib/builtin/builtin.c.v @@ -34,7 +34,7 @@ fn panic_debug(line_no int, file string, mod string, fn_name string, s string) { $if panics_break_into_debugger ? { break_if_debugger_attached() } $else { - C.tcc_backtrace('Backtrace') + C.tcc_backtrace(c'Backtrace') } C.exit(1) } @@ -65,7 +65,7 @@ pub fn panic(s string) { $if panics_break_into_debugger ? { break_if_debugger_attached() } $else { - C.tcc_backtrace('Backtrace') + C.tcc_backtrace(c'Backtrace') } C.exit(1) } diff --git a/vlib/builtin/map.v b/vlib/builtin/map.v index f2d982a623..c2cb08a2c8 100644 --- a/vlib/builtin/map.v +++ b/vlib/builtin/map.v @@ -354,8 +354,8 @@ fn new_map_init_2(hash_fn MapHashFn, key_eq_fn MapEqFn, clone_fn MapCloneFn, fre for _ in 0 .. n { unsafe { out.set_1(pkey, pval) - pkey += key_bytes - pval += value_bytes + pkey = pkey + key_bytes + pval = pval + value_bytes } } return out @@ -696,7 +696,7 @@ pub fn (m &map) keys() []string { unsafe { pkey := m.key_values.key(i) m.clone_fn(item, pkey) - item += m.key_bytes + item = item + m.key_bytes } } return keys @@ -711,7 +711,7 @@ fn (m &map) keys_1() array { unsafe { pkey := m.key_values.key(i) m.clone_fn(item, pkey) - item += m.key_bytes + item = item + m.key_bytes } } return keys @@ -723,7 +723,7 @@ fn (m &map) keys_1() array { unsafe { pkey := m.key_values.key(i) m.clone_fn(item, pkey) - item += m.key_bytes + item = item + m.key_bytes } } return keys