From: Wolfgang Bangerth Date: Tue, 26 Jun 2012 08:58:45 +0000 (+0000) Subject: Make it clear that the *result*, not just one operand, should be of X-Git-Tag: v8.0.0~2491 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c446fc4cdadd0a70f437d682678b68d0763c1c1;p=dealii.git Make it clear that the *result*, not just one operand, should be of type char. I think otherwise the arithmetic is still performed in data type int. git-svn-id: https://svn.dealii.org/trunk@25641 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-38/step-38.cc b/deal.II/examples/step-38/step-38.cc index 980792100e..dd89748fa8 100644 --- a/deal.II/examples/step-38/step-38.cc +++ b/deal.II/examples/step-38/step-38.cc @@ -579,7 +579,7 @@ namespace Step38 mapping.get_degree()); std::string filename ("solution-"); - filename += '0'+static_cast(spacedim); + filename += static_cast('0'+spacedim); filename += "d.vtk"; std::ofstream output (filename.c_str()); data_out.write_vtk (output);