@@ -20,7 +20,7 @@ SEXP fcast(SEXP lhs, SEXP val, SEXP nrowArg, SEXP ncolArg, SEXP idxArg, SEXP fil
2020 const SEXP thiscol = VECTOR_ELT (val , i );
2121 SEXP thisfill = fill ;
2222 const SEXPTYPE thistype = TYPEOF (thiscol );
23- int nprotect = 0 ;
23+ int nprotect = NULL ;
2424 if (some_fill ) {
2525 if (isNull (fill )) {
2626 if (LOGICAL (is_agg )[0 ]) {
@@ -38,7 +38,7 @@ SEXP fcast(SEXP lhs, SEXP val, SEXP nrowArg, SEXP ncolArg, SEXP idxArg, SEXP fil
3838 case INTSXP :
3939 case LGLSXP : {
4040 const int * ithiscol = INTEGER (thiscol );
41- const int * ithisfill = 0 ;
41+ const int * ithisfill = NULL ;
4242 if (some_fill ) ithisfill = INTEGER (thisfill );
4343 for (int j = 0 ; j < ncols ; ++ j ) {
4444 SET_VECTOR_ELT (ans , nlhs + j + i * ncols , target = allocVector (thistype , nrows ) );
@@ -52,7 +52,7 @@ SEXP fcast(SEXP lhs, SEXP val, SEXP nrowArg, SEXP ncolArg, SEXP idxArg, SEXP fil
5252 } break ;
5353 case REALSXP : {
5454 const double * dthiscol = REAL (thiscol );
55- const double * dthisfill = 0 ;
55+ const double * dthisfill = NULL ;
5656 if (some_fill ) dthisfill = REAL (thisfill );
5757 for (int j = 0 ; j < ncols ; ++ j ) {
5858 SET_VECTOR_ELT (ans , nlhs + j + i * ncols , target = allocVector (thistype , nrows ) );
@@ -66,7 +66,7 @@ SEXP fcast(SEXP lhs, SEXP val, SEXP nrowArg, SEXP ncolArg, SEXP idxArg, SEXP fil
6666 } break ;
6767 case CPLXSXP : {
6868 const Rcomplex * zthiscol = COMPLEX (thiscol );
69- const Rcomplex * zthisfill = 0 ;
69+ const Rcomplex * zthisfill = NULL ;
7070 if (some_fill ) zthisfill = COMPLEX (thisfill );
7171 for (int j = 0 ; j < ncols ; ++ j ) {
7272 SET_VECTOR_ELT (ans , nlhs + j + i * ncols , target = allocVector (thistype , nrows ) );
0 commit comments