Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_calendar.c Log Message: Remove use of assert. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_calendar.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- ewl_calendar.c 6 Dec 2007 03:40:45 -0000 1.33 +++ ewl_calendar.c 6 Dec 2007 15:19:44 -0000 1.34 @@ -312,7 +312,8 @@ DENTER_FUNCTION(DLEVEL_STABLE); - assert(year > 1581); + /* FIXME: Properly handle leap year's prior to 1581. */ + if (year <= 1581) year = 1581; leap = (((year % 4 == 0) && (year % 100)) || (year % 400 == 0)); DRETURN_INT(leap, DLEVEL_STABLE); ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs