From: Han-Wen Nienhuys Date: Sun, 8 Jun 2008 16:48:17 +0000 (-0300) Subject: Quench compiler warning about char -> downcast. X-Git-Tag: release/2.11.49-1~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff30d5e7c9a6a9d5dd476c6d023ec579b0ed0224;p=lilypond.git Quench compiler warning about char -> downcast. --- diff --git a/lily/relocate.cc b/lily/relocate.cc index 42c54a65ff..9c8e464d32 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -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; }