SOURCES: chasen-gcc4.patch (NEW) - cast fix.

pluto pluto at pld-linux.org
Sat Feb 25 21:02:22 CET 2006


Author: pluto                        Date: Sat Feb 25 20:02:21 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- cast fix.

---- Files affected:
SOURCES:
   chasen-gcc4.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/chasen-gcc4.patch
diff -u /dev/null SOURCES/chasen-gcc4.patch:1.1
--- /dev/null	Sat Feb 25 21:02:21 2006
+++ SOURCES/chasen-gcc4.patch	Sat Feb 25 21:02:16 2006
@@ -0,0 +1,11 @@
+--- chasen-2.3.3/lib/dartsdic.cpp.orig	2003-07-30 18:06:57.000000000 +0200
++++ chasen-2.3.3/lib/dartsdic.cpp	2006-02-25 21:01:27.326524000 +0100
+@@ -177,7 +177,7 @@
+ 	    lex_indices.push_back(i->second);
+ 	}
+ 	lens[size] = key.size();
+-	(const char*)keys[size] = key.data();
++	keys[size] = const_cast<char*>(key.data());
+ 	vals[size] = redump_lex(lens[size], lex_indices, tmpfile, lexfile);
+ 	if (vals[size] < 0) {
+ 	    std::cerr << "Unexpected error at " << key << std::endl;
================================================================


More information about the pld-cvs-commit mailing list