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 4
4
// from Simon's fastmatch package
5
5
//
6
6
// 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
8
8
//
9
9
// This file is part of Rcpp.
10
10
//
@@ -131,10 +131,10 @@ namespace Rcpp{
131
131
#endif
132
132
133
133
template <typename T>
134
- SEXP lookup__impl (const T& vec, int n ) const {
134
+ SEXP lookup__impl (const T& vec, int n_ ) const {
135
135
RCPP_PROFILE_TIC
136
136
137
- SEXP res = Rf_allocVector (INTSXP, n ) ;
137
+ SEXP res = Rf_allocVector (INTSXP, n_ ) ;
138
138
139
139
RCPP_PROFILE_TOC
140
140
RCPP_PROFILE_RECORD (allocVector)
@@ -143,7 +143,7 @@ namespace Rcpp{
143
143
144
144
RCPP_PROFILE_TIC
145
145
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] ) ;
147
147
148
148
RCPP_PROFILE_TOC
149
149
RCPP_PROFILE_RECORD (lookup)
You can’t perform that action at this time.
0 commit comments