Skip to content

Commit 9cb741d

Browse files
author
Martin D. Weinberg
committed
Two minor fixes necessary for successful compilation with g++15
1 parent b691df8 commit 9cb741d

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

expui/ParticleIterator.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <ParticleReader.H>
55
#include <functional>
6+
#include <cstdint>
67

78
namespace Utility
89
{

exputil/GaussCore.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,13 @@ static int n1;
5656
void GaussMaster(int n, double alpha, double beta, int conflag,
5757
double abscis[], double weight[])
5858
{
59-
#define FALSE 0
60-
#define TRUE 1
61-
typedef int bool;
6259
int k, m;
6360
int below;
6461
double t, min, max, Glob;
6562
double delta, Qp;
6663
double temp;
6764
bool ok;
65+
6866
#define junk1 &delta
6967
#define junk2 &Qp
7068

@@ -170,7 +168,7 @@ void GaussMaster(int n, double alpha, double beta, int conflag,
170168
-Desirable improvement:
171169
include machine roundoff in equality tests.
172170
*/
173-
ok= FALSE;
171+
ok= false;
174172
do {
175173
if (Qp==0) break;
176174
delta/= -Qp;
@@ -182,7 +180,7 @@ void GaussMaster(int n, double alpha, double beta, int conflag,
182180
delta*= (1+t);
183181
}
184182
ok = (min <= temp) && (temp <= max);
185-
} while (FALSE);
183+
} while (false);
186184

187185
if (ok) t=temp; /* use Newton iterate... */
188186
else t= (min + max)/2; /* ...or bisect to recover */
@@ -197,8 +195,6 @@ void GaussMaster(int n, double alpha, double beta, int conflag,
197195
}
198196
#undef junk1
199197
#undef junk2
200-
#undef TRUE
201-
#undef FALSE
202198
}
203199

204200

include/cxxopts.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ THE SOFTWARE.
2727

2828
#include <cctype>
2929
#include <cstring>
30+
#include <cstdint>
3031
#include <exception>
3132
#include <iostream>
3233
#include <limits>

0 commit comments

Comments
 (0)