bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segfault on amd64 with recent CVS


From: Joe Neeman
Subject: Segfault on amd64 with recent CVS
Date: Mon, 13 Feb 2006 21:23:18 +1100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051121)

The problem occurs in vector_sort, because size_t is 64 bits. The attached patch fixes this.
Index: flower/include/std-vector.hh
===================================================================
RCS file: /sources/lilypond/lilypond/flower/include/std-vector.hh,v
retrieving revision 1.19
diff -u -r1.19 std-vector.hh
--- flower/include/std-vector.hh        11 Feb 2006 11:35:18 -0000      1.19
+++ flower/include/std-vector.hh        13 Feb 2006 10:22:03 -0000
@@ -47,7 +47,7 @@
 #ifndef VSIZE
 #define VSIZE
 typedef size_t vsize;
-#define VPOS UINT_MAX
+#define VPOS ((size_t)-1)
 #endif
 
 #if HAVE_STL_DATA_METHOD

reply via email to

[Prev in Thread] Current Thread [Next in Thread]