@@ -209,12 +209,12 @@ class And_LogicalExpression_LogicalExpression : public Rcpp::VectorBase< LGLSXP,
209209
210210 And_LogicalExpression_LogicalExpression ( const LHS_TYPE& lhs_, const RHS_TYPE& rhs_ ) : lhs(lhs_), rhs(rhs_){}
211211
212- inline int operator []( int i ) const {
212+ inline int operator []( R_xlen_t i ) const {
213213 if ( lhs[i] == TRUE && rhs[i] == TRUE ) return TRUE ;
214214 if ( lhs[i] == NA_LOGICAL || rhs[i] == NA_LOGICAL ) return NA_LOGICAL ;
215215 return FALSE ;
216216 }
217- inline int size () const { return lhs.size (); }
217+ inline R_xlen_t size () const { return lhs.size (); }
218218
219219private:
220220 const LHS_TYPE& lhs ;
@@ -229,12 +229,12 @@ class And_LogicalExpression_LogicalExpression<false,LHS_T,RHS_NA,RHS_T>
229229
230230 And_LogicalExpression_LogicalExpression ( const LHS_TYPE& lhs_, const RHS_TYPE& rhs_ ) : lhs(lhs_), rhs(rhs_){}
231231
232- inline int operator []( int i ) const {
232+ inline int operator []( R_xlen_t i ) const {
233233 if ( lhs[i] == TRUE && rhs[i] == TRUE ) return TRUE ;
234234 if ( rhs[i] == NA_LOGICAL ) return NA_LOGICAL ;
235235 return FALSE ;
236236 }
237- inline int size () const { return lhs.size (); }
237+ inline R_xlen_t size () const { return lhs.size (); }
238238
239239private:
240240 const LHS_TYPE& lhs ;
@@ -249,12 +249,12 @@ class And_LogicalExpression_LogicalExpression<LHS_NA,LHS_T,false,RHS_T>
249249
250250 And_LogicalExpression_LogicalExpression ( const LHS_TYPE& lhs_, const RHS_TYPE& rhs_ ) : lhs(lhs_), rhs(rhs_){}
251251
252- inline int operator []( int i ) const {
252+ inline int operator []( R_xlen_t i ) const {
253253 if ( lhs[i] == TRUE && rhs[i] == TRUE ) return TRUE ;
254254 if ( lhs[i] == NA_LOGICAL ) return NA_LOGICAL ;
255255 return FALSE ;
256256 }
257- inline int size () const { return lhs.size (); }
257+ inline R_xlen_t size () const { return lhs.size (); }
258258
259259private:
260260 const LHS_TYPE& lhs ;
@@ -269,11 +269,11 @@ class And_LogicalExpression_LogicalExpression<false,LHS_T,false,RHS_T>
269269
270270 And_LogicalExpression_LogicalExpression ( const LHS_TYPE& lhs_, const RHS_TYPE& rhs_ ) : lhs(lhs_), rhs(rhs_){}
271271
272- inline int operator []( int i ) const {
272+ inline int operator []( R_xlen_t i ) const {
273273 if ( lhs[i] == TRUE && rhs[i] == TRUE ) return TRUE ;
274274 return FALSE ;
275275 }
276- inline int size () const { return lhs.size (); }
276+ inline R_xlen_t size () const { return lhs.size (); }
277277
278278private:
279279 const LHS_TYPE& lhs ;
0 commit comments