Diff for /parser3/src/classes/math.C between versions 1.24 and 1.25

version 1.24, 2003/01/21 15:51:07 version 1.25, 2003/04/04 09:42:04
Line 47  static void _random(Request& r, const St Line 47  static void _random(Request& r, const St
         Pool& pool=r.pool();          Pool& pool=r.pool();
   
         Value& range=params->as_junction(0, "range must be expression");          Value& range=params->as_junction(0, "range must be expression");
     double top=r.process_to_value(range).as_double();          double top=r.process_to_value(range).as_double();
     if(top<=1)          if(top<=0)
                 throw Exception("parser.runtime",                  throw Exception("parser.runtime",
                         &method_name,                          &method_name,
                         "top must be above 1(%g)", top);                          "top must be above 0(%g)", top);
                   
         r.write_no_lang(*new(pool) VInt(pool, _random(uint(top))));          r.write_no_lang(*new(pool) VInt(pool, _random(uint(top))));
 }  }

Removed from v.1.24  
changed lines
  Added in v.1.25


E-mail: