Branch: Tag:

2006-01-10

2006-01-10 17:57:47 by Martin Bähr <mbaehr@email.archlab.tuwien.ac.at>

this fixes getting a
No days in object.
error when converting fractions to days.
negative side-effects of this are unknown.

Rev: lib/modules/Calendar.pmod/YMD.pike:1.13

767:    if (sizeof(mp)) m=mp[0];    else m=1;    -  if (m==-1 && !n) +  if (!n)    return Day("ymd_yd",rules,y,yjd,jd,yd,1);       if (m<0) m+=1+number_of_days();