@@ -137,15 +137,15 @@ static void haio_finalizer(SEXP xptr) {
137137
138138static SEXP mk_error_saio (const int xc , SEXP env ) {
139139
140- SET_INTEGER_ELT (nano_error , 0 , xc ) ;
140+ INTEGER (nano_error )[ 0 ] = xc ;
141141 Rf_defineVar (nano_ResultSymbol , nano_error , ENCLOS (env ));
142142 return nano_error ;
143143
144144}
145145
146146static SEXP mk_error_raio (const int xc , SEXP env ) {
147147
148- SET_INTEGER_ELT (nano_error , 0 , xc ) ;
148+ INTEGER (nano_error )[ 0 ] = xc ;
149149 Rf_defineVar (nano_RawSymbol , nano_error , ENCLOS (env ));
150150 Rf_defineVar (nano_DataSymbol , nano_error , ENCLOS (env ));
151151 return nano_error ;
@@ -154,7 +154,7 @@ static SEXP mk_error_raio(const int xc, SEXP env) {
154154
155155static SEXP mk_error_haio (const int xc , SEXP env ) {
156156
157- SET_INTEGER_ELT (nano_error , 0 , xc ) ;
157+ INTEGER (nano_error )[ 0 ] = xc ;
158158 Rf_defineVar (nano_StatusSymbol , nano_error , ENCLOS (env ));
159159 Rf_defineVar (nano_IdSymbol , nano_error , ENCLOS (env ));
160160 Rf_defineVar (nano_RawSymbol , nano_error , ENCLOS (env ));
@@ -166,7 +166,7 @@ static SEXP mk_error_haio(const int xc, SEXP env) {
166166static SEXP mk_error_data (const int xc ) {
167167
168168 const char * names [] = {"data" , "" };
169- SET_INTEGER_ELT (nano_error , 0 , xc ) ;
169+ INTEGER (nano_error )[ 0 ] = xc ;
170170 SEXP out = Rf_mkNamed (VECSXP , names );
171171 SET_VECTOR_ELT (out , 0 , nano_error );
172172 return out ;
@@ -176,7 +176,7 @@ static SEXP mk_error_data(const int xc) {
176176static SEXP mk_error_result (const int xc ) {
177177
178178 const char * names [] = {"result" , "" };
179- SET_INTEGER_ELT (nano_error , 0 , xc ) ;
179+ INTEGER (nano_error )[ 0 ] = xc ;
180180 SEXP out = Rf_mkNamed (VECSXP , names );
181181 SET_VECTOR_ELT (out , 0 , nano_error );
182182 return out ;
0 commit comments