[Rcpp-commits] r1914 - pkg/Rcpp/inst/include/Rcpp/sugar

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Aug 5 13:06:42 CEST 2010


Author: romain
Date: 2010-08-05 13:06:42 +0200 (Thu, 05 Aug 2010)
New Revision: 1914

Modified:
   pkg/Rcpp/inst/include/Rcpp/sugar/Range.h
Log:
thinko

Modified: pkg/Rcpp/inst/include/Rcpp/sugar/Range.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/sugar/Range.h	2010-08-05 10:11:37 UTC (rev 1913)
+++ pkg/Rcpp/inst/include/Rcpp/sugar/Range.h	2010-08-05 11:06:42 UTC (rev 1914)
@@ -27,7 +27,7 @@
 	class Range : public VectorBase<INTSXP,false, Range >{
 	public:
 		Range( int start_, int end__ ) throw(std::range_error) : start(start_), end_(end__){
-			if( start_ > end_ ){
+			if( start_ > end__ ){
 				throw std::range_error( "upper value must be greater than lower value" ) ;
 			}
 		}



More information about the Rcpp-commits mailing list