Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.294
 
1.295
 
MAIN:ragge:20100905085509
 
pftn.c
_>17561756 #endif
 17571757         if ((q = tc.saved) == NULL) {
 17581758                 TWORD t;
<>1759 -                if ((t = BTYPE(tc.type)) > LDOUBLE && t != VOID)
  1759+                if ((t = BTYPE(tc.type)) > LDOUBLE && t != VOID &&
  1760+                    !(t >= FIMAG && t <= LIMAG))
17601761                         cerror("typenode2 t %x", tc.type);
 17611762                 if (t == UNDEF) {
 17621763                         t = INT;
     
 !
31213122         if (ISITY(r->n_type))
 31223123                 ri = 1, r->n_type = r->n_type - (FIMAG-FLOAT);
 31233124 
<>3124 -        if (op == ASSIGN)
 3125 -                cerror("imop ASSIGN");
 3126 -
31273125         mxtyp = maxtyp(l, r);
 31283126         switch (op) {
<> 3127+        case ASSIGN:
  3128+                /* if both are imag, store value, otherwise store 0.0 */
  3129+                if (!(li && ri)) {
  3130+                        tfree(r);
  3131+                        r = bcon(0);
  3132+                }
  3133+                p = buildtree(ASSIGN, l, r);
  3134+                p->n_type = p->n_type += (FIMAG-FLOAT);
  3135+                break;
  3136+
<_31293137         case PLUS:
 31303138                 if (li && ri) {
 31313139                         p = buildtree(PLUS, l, r);
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-21 14:05 +0200