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