Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.13
 
1.14
 
MAIN:ragge:20030113185530
 
trees.c
_>10981098                    break;
 10991099                    }
 11001100         case COLON:
<>1101 -                {  if( t1 != t2 ) uerror( "illegal types in :");
 1102 -                   break;
 1103 -                   }
  1101+                if (t1 != t2) {
  1102+                        /*
  1103+                         * Check for void pointer types. They are allowed
  1104+                         * to cast to/from any pointers.
  1105+                         */
  1106+                        if (ISPTR(t1) && ISPTR(t2) &&
  1107+                            (BTYPE(t1) == UNDEF || BTYPE(t2) == UNDEF))
  1108+                                break;
  1109+                        uerror("illegal types in :");
  1110+                }
  1111+                break;
  1112+
<_11041113         default/* must work harder: relationals or comparisons */
 11051114 
 11061115                 if( !ISPTR(t1) ){
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-19 21:50 +0200