Skip to content

Commit cb7c4a5

Browse files
author
ripley
committed
Rboolean -> bool
git-svn-id: https://svn.r-project.org/R/trunk@87930 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 4c1ca6b commit cb7c4a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modules/lapack/Lapack.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* R : A Computer Language for Statistical Data Analysis
3-
* Copyright (C) 2001--2023 The R Core Team.
3+
* Copyright (C) 2001--2025 The R Core Team.
44
* Copyright (C) 2003--2010 The R Foundation
55
*
66
* This program is free software; you can redistribute it and/or modify
@@ -263,7 +263,7 @@ static SEXP unscramble(const double* imaginary, int n,
263263
/* Real, general case of eigen */
264264
static SEXP La_rg(SEXP x, SEXP only_values)
265265
{
266-
Rboolean vectors, complexValues;
266+
bool vectors, complexValues;
267267
int i, n, lwork, info, *xdims, ov;
268268
double *work, *wR, *wI, *left, *right, *xvals, tmp;
269269
char jobVL[2] = "N", jobVR[2] = "N";
@@ -306,11 +306,11 @@ static SEXP La_rg(SEXP x, SEXP only_values)
306306
if (info != 0)
307307
error(_("error code %d from Lapack routine '%s'"), info, "dgeev");
308308

309-
complexValues = FALSE;
309+
complexValues = false;
310310
for (i = 0; i < n; i++)
311311
/* This test used to be !=0 for R < 2.3.0. This is OK for 0+0i */
312312
if (fabs(wI[i]) > 10 * R_AccuracyInfo.eps * fabs(wR[i])) {
313-
complexValues = TRUE;
313+
complexValues = true;
314314
break;
315315
}
316316
SEXP ret = PROTECT(allocVector(VECSXP, 2));

0 commit comments

Comments
 (0)