Skip to content

Commit 8cc00cf

Browse files
solaris related fix
1 parent 106befd commit 8cc00cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inst/include/Rcpp/hash/IndexHash.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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)

0 commit comments

Comments
 (0)