ci: fix build-vc job

pull/9611/head
Delyan Angelov 2021-04-05 22:18:18 +03:00
parent acb6145d53
commit 1899845582
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@ fn panic_debug(line_no int, file string, mod string, fn_name string, s string) {
$if panics_break_into_debugger ? { $if panics_break_into_debugger ? {
break_if_debugger_attached() break_if_debugger_attached()
} $else { } $else {
C.tcc_backtrace('Backtrace') C.tcc_backtrace(c'Backtrace')
} }
C.exit(1) C.exit(1)
} }
@ -65,7 +65,7 @@ pub fn panic(s string) {
$if panics_break_into_debugger ? { $if panics_break_into_debugger ? {
break_if_debugger_attached() break_if_debugger_attached()
} $else { } $else {
C.tcc_backtrace('Backtrace') C.tcc_backtrace(c'Backtrace')
} }
C.exit(1) C.exit(1)
} }

View File

@ -354,8 +354,8 @@ fn new_map_init_2(hash_fn MapHashFn, key_eq_fn MapEqFn, clone_fn MapCloneFn, fre
for _ in 0 .. n { for _ in 0 .. n {
unsafe { unsafe {
out.set_1(pkey, pval) out.set_1(pkey, pval)
pkey += key_bytes pkey = pkey + key_bytes
pval += value_bytes pval = pval + value_bytes
} }
} }
return out return out
@ -696,7 +696,7 @@ pub fn (m &map) keys() []string {
unsafe { unsafe {
pkey := m.key_values.key(i) pkey := m.key_values.key(i)
m.clone_fn(item, pkey) m.clone_fn(item, pkey)
item += m.key_bytes item = item + m.key_bytes
} }
} }
return keys return keys
@ -711,7 +711,7 @@ fn (m &map) keys_1() array {
unsafe { unsafe {
pkey := m.key_values.key(i) pkey := m.key_values.key(i)
m.clone_fn(item, pkey) m.clone_fn(item, pkey)
item += m.key_bytes item = item + m.key_bytes
} }
} }
return keys return keys
@ -723,7 +723,7 @@ fn (m &map) keys_1() array {
unsafe { unsafe {
pkey := m.key_values.key(i) pkey := m.key_values.key(i)
m.clone_fn(item, pkey) m.clone_fn(item, pkey)
item += m.key_bytes item = item + m.key_bytes
} }
} }
return keys return keys