Branch: Tag:

2006-01-11

2006-01-11 19:15:09 by Martin Bähr <mbaehr@email.archlab.tuwien.ac.at>

fix for YMD->how_many() always returning 1 less than the correct number

Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.29
Rev: lib/modules/Calendar.pmod/YMD.pike:1.14

625:    object_program(t));    }    -  static TimeRange _add(int n,TimeRange step) +  static TimeRange _add(int _n,TimeRange step)    {    if (step->is_ymd) -  return _move(n,step); +  return _move(_n,step);    if (step->is_timeofday) -  return second()->range(second(-1))->add(n,step); +  if (n) +  return second()->range(second(-1))->add(_n,step); +  else +  return second()->beginning()->add(_n,step);       error("add: incompatible class %O\n",    object_program(step));