This fixes the following compile failure on gcc-4.4.4:
IndexWriter.cpp: In constructor ‘IndexWriter::IndexWriter(std::string&, 
std::string&, unsigned int)’:
IndexWriter.cpp:63: error: invalid conversion from ‘const char*’ to ‘char*’
---
 TableConvert/IndexWriter.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/TableConvert/IndexWriter.cpp b/TableConvert/IndexWriter.cpp
index ca55302..064459b 100644
--- a/TableConvert/IndexWriter.cpp
+++ b/TableConvert/IndexWriter.cpp
@@ -60,7 +60,7 @@ IndexWriter::IndexWriter(std::string &path,
     }
 
     uint64_t seek_offset = 0;
-    char* colon = strchr(path.c_str(),':');
+    const char* colon = strchr(path.c_str(),':');
     if (colon) {
         sscanf(&colon[1],"%lli",&seek_offset);
         const char* ch = path.c_str();
-- 
1.7.1
_______________________________________________
A51 mailing list
[email protected]
http://lists.lists.reflextor.com/cgi-bin/mailman/listinfo/a51

Reply via email to