File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ pub fn (err IError) str() string {
5959 if err is None__ {
6060 return 'none'
6161 }
62- if err.code () > 0 {
63- return '${err .msg ()}; code: ${err .code ()}'
64- }
6562 return err.msg ()
6663}
6764
Original file line number Diff line number Diff line change @@ -4403,7 +4403,7 @@ fn (mut g Gen) typeof_expr(node ast.TypeOf) {
44034403 if sym.kind == .sum_type {
44044404 // When encountering a .sum_type, typeof() should be done at runtime,
44054405 // because the subtype of the expression may change:
4406- g.write ('charptr__vstring_literal (v_typeof_sumtype_${sym .cname }( (' )
4406+ g.write ('builtin__charptr_vstring_literal (v_typeof_sumtype_${sym .cname }( (' )
44074407 if typ.nr_muls () > 0 {
44084408 g.write ('*' .repeat (typ.nr_muls ()))
44094409 }
Original file line number Diff line number Diff line change @@ -1692,7 +1692,7 @@ fn (mut g Gen) method_call(node ast.CallExpr) {
16921692 match node.kind {
16931693 .type_name {
16941694 if left_sym.kind in [.sum_type, .interface ] {
1695- g.conversion_function_call ('charptr__vstring_literal (v_typeof_${prefix_name }_${typ_sym .cname }' ,
1695+ g.conversion_function_call ('builtin__charptr_vstring_literal (v_typeof_${prefix_name }_${typ_sym .cname }' ,
16961696 ')' , node)
16971697 return
16981698 }
Original file line number Diff line number Diff line change @@ -242,9 +242,9 @@ fn (mut p Preferences) find_cc_if_cross_compiling() {
242242 return
243243 }
244244 if p.ccompiler_set_by_flag {
245- // tcc cannot cross-compile for Windows (no Windows headers),
246- // so override it with the proper cross-compiler.
247- if p.os == .windows && p.ccompiler.contains ('tcc ' ) {
245+ // Only mingw compilers can cross-compile for Windows (others lack Windows headers),
246+ // so override any non-mingw compiler with the proper cross-compiler.
247+ if p.os == .windows && ! p.ccompiler.contains ('mingw ' ) {
248248 p.ccompiler = p.vcross_compiler_name ()
249249 return
250250 }
You can’t perform that action at this time.
0 commit comments