Skip to content

Commit eecb627

Browse files
committed
while (true) to pacify clang
1 parent eba0105 commit eecb627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Base/AMReX_Random.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace amrex
131131
Real d = alpha - 1.0_rt / 3.0_rt;
132132
Real c = (1.0_rt / 3.0_rt) / std::sqrt(d);
133133

134-
while (1) {
134+
while (true) {
135135
do {
136136
x = amrex::RandomNormal(0.0_rt, 1.0_rt, random_engine);
137137
v = 1.0_rt + c * x;

0 commit comments

Comments
 (0)