Skip to content

Commit 642f58c

Browse files
committed
Allow integer narrowing in triplet construction.
1 parent c049976 commit 642f58c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/atlas/interpolation/method/cubedsphere/CubedSphereBilinear.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ void CubedSphereBilinear::do_setup(const FunctionSpace& source, const FunctionSp
8181
switch (cell.nodes.size()) {
8282
case (3): {
8383
// Cell is a triangle.
84-
weights[i] = TriWeights{Triplet{i, j[0], 1. - isect.u - isect.v}, Triplet{i, j[1], isect.u},
85-
Triplet{i, j[2], isect.v}};
84+
weights[i] = TriWeights{Triplet(i, j[0], 1. - isect.u - isect.v), Triplet(i, j[1], isect.u),
85+
Triplet(i, j[2], isect.v)};
8686
break;
8787
}
8888
case (4): {

0 commit comments

Comments
 (0)