]> git.donarmstrong.com Git - lilypond.git/commitdiff
Quench compiler warning about char -> downcast.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 8 Jun 2008 16:48:17 +0000 (13:48 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 8 Jun 2008 16:48:17 +0000 (13:48 -0300)
lily/relocate.cc

index 42c54a65ff3863bf3d9635b9a21b3956f46698ed..9c8e464d32856c65129928bc11e4208216efb0a8 100644 (file)
@@ -336,7 +336,7 @@ expand_environment_variables (string orig)
   return out;
 }
 
-
+// Ugh - very inefficient, but safer than fgets.
 static string
 read_line (FILE *f)
 {
@@ -344,7 +344,7 @@ read_line (FILE *f)
   
   int c = 0;
   while ((c = fgetc (f)) != EOF && c != '\n')
-    out += c;
+    out += char(c);
 
   return out;
 }