diff --git a/NumLib/Function/Interpolation.h b/NumLib/Function/Interpolation.h
index 337de442387c58e412e54364dceee3d800497dd7..8999d16d0b49b5d9c93e7e3567872fd5acc0fcc2 100644
--- a/NumLib/Function/Interpolation.h
+++ b/NumLib/Function/Interpolation.h
@@ -77,7 +77,8 @@ void shapeFunctionInterpolate(
     auto const num_nodal_dof = sizeof...(interpolated_values) + 1;
     auto const num_nodes = shape_matrix_N.size();
 
-    assert(num_nodes*num_nodal_dof == nodal_values.size());
+    assert(num_nodes * num_nodal_dof ==
+           static_cast<std::size_t>(nodal_values.size()));
     (void) num_nodal_dof; (void) num_nodes; // no warnings when not in debug build
 
     detail::shapeFunctionInterpolate<0>(nodal_values, shape_matrix_N, interpolated_value,