/[tinycc]/tinycc/tcc.c
ViewVC logotype

Diff of /tinycc/tcc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.148 by bellard, Fri Oct 17 20:43:47 2003 UTC revision 1.149 by bellard, Fri Oct 17 20:59:15 2003 UTC
# Line 5856  static void gen_assign_cast(CType *dt) Line 5856  static void gen_assign_cast(CType *dt)
5856          /* XXX: more tests */          /* XXX: more tests */
5857          break;          break;
5858      case VT_STRUCT:      case VT_STRUCT:
5859          if (!is_compatible_types(dt, st)) {          tmp_type1 = *dt;
5860            tmp_type2 = *st;
5861            tmp_type1.t &= ~(VT_CONSTANT | VT_VOLATILE);
5862            tmp_type2.t &= ~(VT_CONSTANT | VT_VOLATILE);
5863            if (!is_compatible_types(&tmp_type1, &tmp_type2)) {
5864          error:          error:
5865              type_to_str(buf1, sizeof(buf1), st, NULL);              type_to_str(buf1, sizeof(buf1), st, NULL);
5866              type_to_str(buf2, sizeof(buf2), dt, NULL);              type_to_str(buf2, sizeof(buf2), dt, NULL);

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26