Skip to content

Commit 4d9da26

Browse files
author
ripley
committed
add casts, comments
git-svn-id: https://svn.r-project.org/R/trunk@87948 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 49a5107 commit 4d9da26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/appl/interv.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ int F77_SUB(interv)(double *xt, int *n, double *x,
4040
int *rightmost_closed, int *all_inside,
4141
int *ilo, int *mflag)
4242
{
43-
return findInterval(xt, *n, *x, *rightmost_closed, *all_inside, *ilo, mflag);
43+
// This has an int return value which is ignored here
44+
return findInterval(xt, *n, *x,
45+
(Rboolean) *rightmost_closed,
46+
(Rboolean) *all_inside,
47+
*ilo, mflag);
4448
}
4549

4650
/* In API header R_ext/Utils.h */

0 commit comments

Comments
 (0)