Changeset 3933


Ignore:
Timestamp:
Sep 18, 2008, 5:55:40 PM (12 years ago)
Author:
yura
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/opents/samples/arithm.hh

    r3928 r3933  
    1313  TExpr e;
    1414  ((Expr&) e).init(1);
    15   ((Expr&) e)[0].init_int((Expr&)_s1[0].data + (Expr&)_s1[0].data);
     15  ((Expr&) e)[0].init_int(((Expr&)_s1)[0].data + ((Expr&)_s2)[0].data);
    1616  _res = e;
    1717  return 0;
     
    2121  TExpr e;
    2222  ((Expr&) e).init(1);
    23   ((Expr&) e)[0].init_int((Expr&)_s1[0].data - (Expr&)_s1[0].data);
     23  ((Expr&) e)[0].init_int(((Expr&)_s1)[0].data - ((Expr&)_s2)[0].data);
    2424  _res = e;
    2525  return 0;
     
    2929  TExpr e;
    3030  ((Expr&) e).init(1);
    31   ((Expr&) e)[0].init_int((Expr&)_s1[0].data * (Expr&)_s1[0].data);
     31  ((Expr&) e)[0].init_int(((Expr&)_s1)[0].data * ((Expr&)_s2)[0].data);
    3232  _res = e;
    3333  return 0;
Note: See TracChangeset for help on using the changeset viewer.