From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ad3d32e0f61ac75ebddaa2845c3d8a804ae3129;p=dealii-svn.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);