]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
fix "make dist" target
[lyx.git] / src / bufferlist.C
index 5720356deb12f6ff41c34be385f7ec59f44b2f0e..5dc320670da45f26abb4836f1af45ff6e559056b 100644 (file)
@@ -287,7 +287,10 @@ void BufferList::emergencyWriteAll()
 
 void BufferList::emergencyWrite(Buffer * buf) 
 {
-       assert(buf); // use c assert to avoid a loop
+       // assert(buf) // this is not good since C assert takes an int
+                      // and a pointer is a long (JMarc)
+       assert(buf != 0); // use c assert to avoid a loop
+
        
        // No need to save if the buffer has not changed.
        if (buf->isLyxClean()) return;