Diff for /parser3/src/classes/math.C between versions 1.83 and 1.84

version 1.83, 2016/11/01 23:10:40 version 1.84, 2016/12/29 15:24:48
Line 46  DECLARE_CLASS_VAR(math, new MMath); Line 46  DECLARE_CLASS_VAR(math, new MMath);
   
 static void _random(Request& r, MethodParams& params) {  static void _random(Request& r, MethodParams& params) {
         double top=params.as_double(0, "range must be expression", r);          double top=params.as_double(0, "range must be expression", r);
         if(top<=0 || top>MAX_UINT)          if(top<1 || top>INT32_MAX)
                 throw Exception(PARSER_RUNTIME,                  throw Exception(PARSER_RUNTIME, 0, "top(%.15g) must be [1..%u]", top, INT32_MAX);
                         0,  
                         "top(%g) must be [1..%u]", top, MAX_UINT);  
           
         r.write(*new VInt(_random(uint(top))));          r.write(*new VInt(_random(uint(top))));
 }  }
   

Removed from v.1.83  
changed lines
  Added in v.1.84


E-mail: