diff --git a/vtkm/worklet/MeshQuality.h b/vtkm/worklet/MeshQuality.h index 9ab2c941a..233bdb589 100644 --- a/vtkm/worklet/MeshQuality.h +++ b/vtkm/worklet/MeshQuality.h @@ -168,11 +168,11 @@ protected: break; case MetricTagType::RELATIVE_SIZE_SQUARED: metricValue = vtkm::worklet::cellmetrics::CellRelativeSizeSquaredMetric( - numPts, pts, average, tag, *this); + numPts, pts, static_cast(average), tag, *this); break; case MetricTagType::SHAPE_AND_SIZE: metricValue = vtkm::worklet::cellmetrics::CellShapeAndSizeMetric( - numPts, pts, average, tag, *this); + numPts, pts, static_cast(average), tag, *this); break; case MetricTagType::SCALED_JACOBIAN: metricValue =