]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make it clear that the *result*, not just one operand, should be of
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Jun 2012 08:58:45 +0000 (08:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Jun 2012 08:58:45 +0000 (08:58 +0000)
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

deal.II/examples/step-38/step-38.cc

index 980792100e54014d60784c11d457fe575fc43623..dd89748fa8e5aee4dad71dcc51a49b046aff9714 100644 (file)
@@ -579,7 +579,7 @@ namespace Step38
                             mapping.get_degree());
 
     std::string filename ("solution-");
-    filename += '0'+static_cast<char>(spacedim);
+    filename += static_cast<char>('0'+spacedim);
     filename += "d.vtk";
     std::ofstream output (filename.c_str());
     data_out.write_vtk (output);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.