Skip to content

Commit 792784f

Browse files
author
Qiang Kou
committed
traits
1 parent 48f70ba commit 792784f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inst/include/Rcpp/vector/traits.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ namespace traits{
4343
inline const_iterator get_const() const { return start; }
4444

4545
inline proxy ref() { return *start ;}
46-
inline proxy ref(int i) { return start[i] ; }
46+
inline proxy ref(R_xlen_t i) { return start[i] ; }
4747

4848
inline proxy ref() const { return *start ;}
49-
inline proxy ref(int i) const { return start[i] ; }
49+
inline proxy ref(R_xlen_t i) const { return start[i] ; }
5050

5151
private:
5252
iterator start ;
@@ -70,10 +70,10 @@ namespace traits{
7070
inline const_iterator get_const() const { return get_vector_ptr(*p) ; }
7171

7272
inline proxy ref() { return proxy(*p,0) ; }
73-
inline proxy ref(int i) { return proxy(*p,i);}
73+
inline proxy ref(R_xlen_t i) { return proxy(*p,i);}
7474

7575
inline const_proxy ref() const { return const_proxy(*p,0) ; }
76-
inline const_proxy ref(int i) const { return const_proxy(*p,i);}
76+
inline const_proxy ref(R_xlen_t i) const { return const_proxy(*p,i);}
7777

7878
private:
7979
VECTOR* p ;

0 commit comments

Comments
 (0)