Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.302
 
1.303
 
MAIN:ragge:20110814073559
 
trees.c
_>851851 
 852852         v1 = p->n_lval;
 853853         v2 = q->n_lval;
<> 854+        if (v2 == 0 && (cdope(o) & DIVFLG))
  855+                return 0; /* leave division by zero to runtime */
854856         switch( o ){
 855857 
 856858         case PLUS:
     
 !
867869                 p->n_lval *= val;
 868870                 break;
 869871         case DIV:
<>870 -                if (val == 0)
 871 -                        uerror("division by 0");
 872 -                else  {
 873 -                        if (u) {
 874 -                                v1 /= v2;
 875 -                                p->n_lval = v1;
 876 -                        } else
 877 -                                p->n_lval /= val;
 878 -                }
  872+                if (u) {
  873+                        v1 /= v2;
  874+                        p->n_lval = v1;
  875+                } else
  876+                        p->n_lval /= val;
879877                 break;
 880878         case MOD:
<>881 -                if (val == 0)
 882 -                        uerror("division by 0");
 883 -                else  {
 884 -                        if (u) {
 885 -                                v1 %= v2;
 886 -                                p->n_lval = v1;
 887 -                        } else
 888 -                                p->n_lval %= val;
 889 -                }
  879+                if (u) {
  880+                        v1 %= v2;
  881+                        p->n_lval = v1;
  882+                } else
  883+                        p->n_lval %= val;
<_890884                 break;
 891885         case AND:
 892886                 p->n_lval &= val;
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-31 18:07 +0100