Skip to content

Commit 7f73db3

Browse files
author
ripley
committed
tweak use of Rboolean
git-svn-id: https://svn.r-project.org/R/trunk@87803 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 2902859 commit 7f73db3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/library/stats/src/loessc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1998--2023 The R Core Team
2+
* Copyright (C) 1998--2025 The R Core Team
33
*
44
* The authors of this software are Cleveland, Grosse, and Shyu.
55
* Copyright (c) 1989, 1992 by AT&T.
@@ -113,7 +113,7 @@ loess_raw(double *y, double *x, double *weights, double *robust, int *d,
113113

114114
*trL = 0;
115115

116-
loess_workspace(*d, *n, *span, *degree, *nonparametric, drop_square, *sum_drop_sqr, *setLf);
116+
loess_workspace(*d, *n, *span, *degree, *nonparametric, drop_square, *sum_drop_sqr, (Rboolean) *setLf);
117117
v[1] = *cell;/* = v(2) in Fortran (!) */
118118

119119
/* NB: surf_stat = (surface / statistics);

src/modules/internet/internet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static SEXP in_do_download(SEXP args)
331331
if(length(sfile) > 1)
332332
warning(_("only first element of 'destfile' argument used"));
333333
file = translateChar(STRING_ELT(sfile, 0));
334-
IDquiet = quiet = asLogical(CAR(args)); args = CDR(args);
334+
IDquiet = quiet = asRbool(CAR(args), R_NilValue); args = CDR(args);
335335
if(quiet == NA_LOGICAL)
336336
error(_("invalid '%s' argument"), "quiet");
337337
smode = CAR(args); args = CDR(args);

0 commit comments

Comments
 (0)