parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Тупой патч...

Sumo 18.04.2015 22:33

Index: date.C
===================================================================
RCS file: /parser3project/parser3/src/classes/date.C,v
retrieving revision 1.92
diff -u -r1.92 date.C
--- date.C	2 Oct 2013 20:57:28 -0000	1.92
+++ date.C	18 Apr 2015 19:32:52 -0000
@@ -72,7 +72,7 @@

 /// shrinked range: 1970/1/1 to 2038/1/1
 static int to_year(int iyear) {
-	if(iyear<1970 || iyear>2038)
+	if(iyear<1970 || (sizeof(time_t) == 4 && iyear>2038))
 		throw Exception(DATE_RANGE_EXCEPTION_TYPE,
 			0,
 			"year '%d' is out of valid range", iyear);