@@ -1425,7 +1425,7 @@ static void loadCompilerNamespace(void)
14251425
14261426static  void  checkCompilerOptions (int  jitEnabled )
14271427{
1428-     int  old_visible  =  R_Visible ;
1428+     Rboolean  old_visible  =  R_Visible ;
14291429    SEXP  packsym , funsym , call , fcall , arg ;
14301430
14311431    packsym  =  install ("compiler" );
@@ -1825,7 +1825,7 @@ static R_INLINE Rboolean jit_srcref_match(SEXP cmpsrcref, SEXP srcref)
18251825
18261826attribute_hidden  SEXP  R_cmpfun1 (SEXP  fun )
18271827{
1828-     int  old_visible  =  R_Visible ;
1828+     Rboolean  old_visible  =  R_Visible ;
18291829    SEXP  packsym , funsym , call , fcall , val ;
18301830
18311831    packsym  =  install ("compiler" );
@@ -1911,7 +1911,7 @@ static void R_cmpfun(SEXP fun)
19111911
19121912static  SEXP  R_compileExpr (SEXP  expr , SEXP  rho )
19131913{
1914-     int  old_visible  =  R_Visible ;
1914+     Rboolean  old_visible  =  R_Visible ;
19151915    SEXP  packsym , funsym , quotesym ;
19161916    SEXP  qexpr , call , fcall , val ;
19171917
@@ -2677,7 +2677,7 @@ static R_INLINE Rboolean asLogicalNoNA(SEXP s, SEXP call)
26772677	    _ ("argument is of length zero" );
26782678	errorcall (call , "%s" , msg );
26792679    }
2680-     return  cond ;
2680+     return  ( Rboolean )  cond ;
26812681}
26822682
26832683
@@ -4332,7 +4332,7 @@ static Rboolean R_chooseOpsMethod(SEXP x, SEXP y, SEXP mx, SEXP my,
43324332#endif 
43334333    UNPROTECT (1 ); /* newrho */ 
43344334
4335-     return  ans  ==  R_NilValue  ? FALSE : asLogical (ans );
4335+     return  ans  ==  R_NilValue  ? FALSE : asRbool (ans ,  call );
43364336}
43374337
43384338attribute_hidden 
@@ -6904,7 +6904,7 @@ static R_INLINE Rboolean GETSTACK_LOGICAL_NO_NA_PTR(R_bcstack_t *s, int callidx,
69046904						    SEXP  rho )
69056905{
69066906    if  (s -> tag  ==  LGLSXP  &&  s -> u .ival  !=  NA_LOGICAL )
6907- 	return  s -> u .ival ;
6907+ 	return  ( Rboolean )  s -> u .ival ;
69086908
69096909    SEXP  value  =  GETSTACK_PTR (s );
69106910    if  (IS_SCALAR (value , LGLSXP )) {
@@ -6924,7 +6924,7 @@ static R_INLINE int GETSTACK_LOGICAL_PTR(R_bcstack_t *s)
69246924{
69256925    if  (s -> tag  ==  LGLSXP ) return  s -> u .ival ;
69266926    SEXP  value  =  GETSTACK_PTR (s );
6927-     return  SCALAR_LVAL (value );  //what about NA_LOGICAL? 
6927+     return  SCALAR_LVAL (value );
69286928}
69296929
69306930/* Find locations table in the constant pool */ 
0 commit comments