source: npl/overig/libical/libical-nth-recur-overflow.diff

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 560 bytes
  • src/libical/icalrecur.c

    old new  
    21402140                } else if (pos > 0) {
    21412141                    /* Add the nth instance of the weekday within the month. */
    21422142                    month_day = first_matching_day + (pos - 1) * 7;
     2143                   
     2144                    /* Track back overflowing days */
     2145                    while(month_day > days_in_month)
     2146                        month_day -=7;
    21432147
    21442148                    if (month_day <= days_in_month)
    21452149                        impl->days[days_index++] = (short)(doy_offset + month_day);
Note: See TracBrowser for help on using the repository browser.