[Rcpp-commits] r3490 - pkg/Rcpp/inst/include/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Mar 6 17:18:19 CET 2012
Author: dmbates
Date: 2012-03-06 17:18:19 +0100 (Tue, 06 Mar 2012)
New Revision: 3490
Modified:
pkg/Rcpp/inst/include/Rcpp/DottedPair.h
Log:
Comment out tautological comparison flagged by clang++
Modified: pkg/Rcpp/inst/include/Rcpp/DottedPair.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/DottedPair.h 2012-03-06 02:50:35 UTC (rev 3489)
+++ pkg/Rcpp/inst/include/Rcpp/DottedPair.h 2012-03-06 16:18:19 UTC (rev 3490)
@@ -102,7 +102,8 @@
if( index == 0 ) {
push_front( object ) ;
} else{
- if( index < 0 ) throw index_out_of_bounds() ;
+ // tautological comparison flagged by clang++
+// if( index < 0 ) throw index_out_of_bounds() ;
if( isNULL( ) ) throw index_out_of_bounds() ;
if( static_cast<R_len_t>(index) > ::Rf_length(m_sexp) ) throw index_out_of_bounds() ;
More information about the Rcpp-commits
mailing list