diff --git a/src/core/CLucene/index/IndexFileDeleter.cpp b/src/core/CLucene/index/IndexFileDeleter.cpp
index bea740b..14424cc 100644
--- a/src/core/CLucene/index/IndexFileDeleter.cpp
+++ b/src/core/CLucene/index/IndexFileDeleter.cpp
@@ -90,7 +90,7 @@ void IndexFileDeleter::setInfoStream(std::ostream* infoStream) {
 }
 
 void IndexFileDeleter::message(string message) {
-	(*infoStream) << string("IFD [") << Misc::toString( (int32_t)(_LUCENE_CURRTHREADID) ) << string("]: ") << message << string("\n");
+	(*infoStream) << string("IFD [") << Misc::toString( _LUCENE_CURRTHREADID ) << string("]: ") << message << string("\n");
 }
 
 
diff --git a/src/shared/CLucene/util/Misc.cpp b/src/shared/CLucene/util/Misc.cpp
index 64b511a..1cf84e5 100644
--- a/src/shared/CLucene/util/Misc.cpp
+++ b/src/shared/CLucene/util/Misc.cpp
@@ -445,6 +445,13 @@ std::string Misc::toString(const int64_t value){
   STRCPY_TtoA(buf,tbuf,20);
   return buf;
 }
+std::string Misc::toString(const uint64_t value){
+  char buf[20];
+  TCHAR tbuf[20];
+  _ui64tot(value, tbuf, 10);
+  STRCPY_TtoA(buf,tbuf,20);
+  return buf;
+}
 std::string Misc::toString(const float_t value){
   char buf[20];
   _snprintf(buf,20,"%0.2f",(double)value);
diff --git a/src/shared/CLucene/util/Misc.h b/src/shared/CLucene/util/Misc.h
index ef98cb0..f5f48b6 100644
--- a/src/shared/CLucene/util/Misc.h
+++ b/src/shared/CLucene/util/Misc.h
@@ -57,6 +57,7 @@ CL_NS_DEF(util)
 
   static std::string toString(const int32_t value);
   static std::string toString(const int64_t value);
+  static std::string toString(const uint64_t value);
   static std::string toString(const bool value);
   static std::string toString(const float_t value);
   static std::string toString(const TCHAR* s, int32_t len=-1);
