]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/file-cookie.cc
Doc: Included/compile.itexi - CG 4.2 - Updated notes on reqs for compiling
[lilypond.git] / flower / file-cookie.cc
index 90aa5c908d0906e320d61116f8525b52db0b484a..36871d705d5e56f78aa3017c2e382301ac80875a 100644 (file)
@@ -1,7 +1,6 @@
 
 #include <cassert>
 #include <cstdio>
-using namespace std;
 
 #include "memory-stream.hh"
 
@@ -39,10 +38,10 @@ extern "C" {
 
     static char buf[65536];
     int i = vsnprintf (buf, sizeof (buf), format, ap);
-    if (i == -1 || (unsigned) i > sizeof (buf))
+    if (i < 0 || (unsigned) i > sizeof (buf))
       assert (false);
     va_end (ap);
-    return Memory_out_stream::writer (file, buf, i);
+    return Memory_out_stream::writer (file, buf, (unsigned)i);
   }
 
   ssize_t