File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44// from Simon's fastmatch package
55//
66// Copyright (C) 2010, 2011 Simon Urbanek
7- // Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois
7+ // Copyright (C) 2012 - 2014 Dirk Eddelbuettel and Romain Francois
88//
99// This file is part of Rcpp.
1010//
@@ -131,10 +131,10 @@ namespace Rcpp{
131131 #endif
132132
133133 template <typename T>
134- SEXP lookup__impl (const T& vec, int n ) const {
134+ SEXP lookup__impl (const T& vec, int n_ ) const {
135135 RCPP_PROFILE_TIC
136136
137- SEXP res = Rf_allocVector (INTSXP, n ) ;
137+ SEXP res = Rf_allocVector (INTSXP, n_ ) ;
138138
139139 RCPP_PROFILE_TOC
140140 RCPP_PROFILE_RECORD (allocVector)
@@ -143,7 +143,7 @@ namespace Rcpp{
143143
144144 RCPP_PROFILE_TIC
145145
146- for ( int i=0 ; i<n ; i++) v[i] = get_index ( vec[i] ) ;
146+ for ( int i=0 ; i<n_ ; i++) v[i] = get_index ( vec[i] ) ;
147147
148148 RCPP_PROFILE_TOC
149149 RCPP_PROFILE_RECORD (lookup)
You can’t perform that action at this time.
0 commit comments