]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-38: fix compilation error with some compilers
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 23 Jun 2012 01:25:09 +0000 (01:25 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 23 Jun 2012 01:25:09 +0000 (01:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@25638 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 72c85c8787475d36cd86a40106b701704a1152e0..980792100e54014d60784c11d457fe575fc43623 100644 (file)
@@ -579,7 +579,7 @@ namespace Step38
                             mapping.get_degree());
 
     std::string filename ("solution-");
-    filename += ('0'+spacedim);
+    filename += '0'+static_cast<char>(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.