Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.233
 
1.234
 
MAIN:gmcgarry:20090507224628
 
trees.c
_>211211                 }
 212212         } else if (opty == BITYPE && (l->n_op == FCON || l->n_op == ICON) &&
 213213             (r->n_op == FCON || r->n_op == ICON) && (o == PLUS || o == MINUS ||
<>214 -            o == MUL || o == DIV)) {
  214+            o == MUL || o == DIV || (o >= EQ && o <= GT) )) {
  215+                if (l->n_op == ICON)
  216+                        l->n_dcon = FLOAT_CAST(l->n_lval, l->n_type);
  217+                if (r->n_op == ICON)
  218+                        r->n_dcon = FLOAT_CAST(r->n_lval, r->n_type);
215219                 switch(o){
 216220                 case PLUS:
 217221                 case MINUS:
 218222                 case MUL:
 219223                 case DIV:
<>220 -                        if (l->n_op == ICON)
 221 -                                l->n_dcon = FLOAT_CAST(l->n_lval, l->n_type);
 222 -                        if (r->n_op == ICON)
 223 -                                r->n_dcon = FLOAT_CAST(r->n_lval, r->n_type);
224224                         switch (o) {
 225225                         case PLUS:
 226226                                 l->n_dcon = FLOAT_PLUS(l->n_dcon, r->n_dcon);
     
 !
242242                         l->n_sue = MKSUE(DOUBLE);
 243243                         nfree(r);
 244244                         return(l);
<> 245+                case EQ:
  246+                case NE:
  247+                case LE:
  248+                case LT:
  249+                case GE:
  250+                case GT:
  251+                        switch (o) {
  252+                        case EQ:
  253+                                l->n_lval = FLOAT_EQ(l->n_dcon, r->n_dcon);
  254+                                break;
  255+                        case NE:
  256+                                l->n_lval = FLOAT_NE(l->n_dcon, r->n_dcon);
  257+                                break;
  258+                        case LE:
  259+                                l->n_lval = FLOAT_LE(l->n_dcon, r->n_dcon);
  260+                                break;
  261+                        case LT:
  262+                                l->n_lval = FLOAT_LT(l->n_dcon, r->n_dcon);
  263+                                break;
  264+                        case GE:
  265+                                l->n_lval = FLOAT_GE(l->n_dcon, r->n_dcon);
  266+                                break;
  267+                        case GT:
  268+                                l->n_lval = FLOAT_GT(l->n_dcon, r->n_dcon);
  269+                                break;
  270+                        }
  271+                        l->n_op = ICON;
  272+                        l->n_type = INT;
  273+                        l->n_sue = MKSUE(INT);
  274+                        nfree(r);
  275+                        return l;
<_245276                 }
 246277         }
 247278 runtime:
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-10-30 16:10 +0100