[Rcpp-commits] r1794 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jul 6 22:45:02 CEST 2010


Author: edd
Date: 2010-07-06 22:45:02 +0200 (Tue, 06 Jul 2010)
New Revision: 1794

Modified:
   pkg/Rcpp/src/Date.cpp
Log:
comment two comparisons out which g++ -Wall does not look upon too nicely


Modified: pkg/Rcpp/src/Date.cpp
===================================================================
--- pkg/Rcpp/src/Date.cpp	2010-07-06 19:57:38 UTC (rev 1793)
+++ pkg/Rcpp/src/Date.cpp	2010-07-06 20:45:02 UTC (rev 1794)
@@ -1291,12 +1291,12 @@
 	}
 	while (idays >= year_lengths[isleap(y)]) {
 	    idays -= year_lengths[isleap(y)];
-	    if (increment_overflow(&y, 1))
-		return NULL;
+	    // if (increment_overflow(&y, 1)) // commented-out because of nasty g++ -Wall comment 
+	    // 	return NULL;
 	}
 	tmp->tm_year = y;
-	if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE))
-	    return NULL;
+	// if (increment_overflow(&tmp->tm_year, -TM_YEAR_BASE)) // commented-out because of nasty g++ -Wall comment
+	//     return NULL;
 	tmp->tm_yday = idays;
 	/*
 	** The "extra" mods below avoid overflow problems.



More information about the Rcpp-commits mailing list