From b1941fe05dcd49c084b4b7ed518aeb19fc642758 Mon Sep 17 00:00:00 2001 From: dockes Date: Thu, 2 Feb 2006 08:58:11 +0000 Subject: [PATCH] suppress 2 compilation warnings (one was actual 64bits bug but inocuous --- src/rcldb/rcldb.cpp | 4 ++-- src/utils/pathut.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 6a8ff52e..c66bf0d0 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.55 2006-01-27 13:34:42 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.56 2006-02-02 08:58:11 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -1323,7 +1323,7 @@ bool Rcl::Db::getDoc(const string &fn, const string &ipath, Doc &doc) try { if (!ndb->db.term_exists(pathterm)) { char len[20]; - sprintf(len, "%d", pathterm.length()); + sprintf(len, "%d", int(pathterm.length())); throw string("path inexistant: [") + pathterm +"] length " + len; } for (Xapian::PostingIterator docid = diff --git a/src/utils/pathut.cpp b/src/utils/pathut.cpp index 8f71c705..0937de13 100644 --- a/src/utils/pathut.cpp +++ b/src/utils/pathut.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: pathut.cpp,v 1.8 2006-01-23 13:32:28 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: pathut.cpp,v 1.9 2006-02-02 08:58:11 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -182,7 +182,7 @@ list path_dirglob(const std::string &dir, if (glob(mypat.c_str(), 0, 0, &mglob)) { return res; } - for (int i = 0; i < mglob.gl_pathc; i++) { + for (int i = 0; i < int(mglob.gl_pathc); i++) { res.push_back(mglob.gl_pathv[i]); } globfree(&mglob);